Kaydet (Commit) 1e49e33c authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constantparam in chart2..connectivity

Change-Id: Ic9e1bd36a11c7148fa7595a2b6c6de9bd7a8653d
Reviewed-on: https://gerrit.libreoffice.org/28834Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst e1822c80
......@@ -38,7 +38,7 @@ namespace cairocanvas
const rendering::ViewState& rUsedViewState,
const rendering::RenderState& rUsedRenderState,
const uno::Reference< rendering::XCanvas >& rTarget ) :
CachedPrimitiveBase( rUsedViewState, rTarget, true ),
CachedPrimitiveBase( rUsedViewState, rTarget ),
mpSurface( pSurface ),
maRenderState( rUsedRenderState )
{}
......
......@@ -32,12 +32,10 @@ using namespace ::com::sun::star;
namespace canvas
{
CachedPrimitiveBase::CachedPrimitiveBase( const rendering::ViewState& rUsedViewState,
const uno::Reference< rendering::XCanvas >& rTarget,
bool bFailForChangedViewTransform ) :
const uno::Reference< rendering::XCanvas >& rTarget ) :
CachedPrimitiveBase_Base( m_aMutex ),
maUsedViewState( rUsedViewState ),
mxTarget( rTarget ),
mbFailForChangedViewTransform( bFailForChangedViewTransform )
mxTarget( rTarget )
{
}
......@@ -65,8 +63,7 @@ namespace canvas
const bool bSameViewTransforms( aUsedTransformation == aNewTransformation );
if( mbFailForChangedViewTransform &&
!bSameViewTransforms )
if( !bSameViewTransforms )
{
// differing transformations, don't try to draft the
// output, just plain fail here.
......
......@@ -40,7 +40,7 @@ namespace vclcanvas
const rendering::ViewState& rUsedViewState,
const rendering::RenderState& rUsedRenderState,
const uno::Reference< rendering::XCanvas >& rTarget ) :
CachedPrimitiveBase( rUsedViewState, rTarget, true ),
CachedPrimitiveBase( rUsedViewState, rTarget ),
mpGraphicObject( rGraphicObject ),
maRenderState(rUsedRenderState),
maPoint( rPoint ),
......
......@@ -27,7 +27,7 @@
namespace chart
{
TextDirectionListBox::TextDirectionListBox( vcl::Window* pParent, vcl::Window* pWindow1, vcl::Window* pWindow2 ) :
TextDirectionListBox::TextDirectionListBox( vcl::Window* pParent ) :
svx::FrameDirectionListBox( pParent, WB_BORDER | WB_TABSTOP | WB_DROPDOWN)
{
InsertEntryValue( SCH_RESSTR( STR_TEXT_DIRECTION_LTR ), FRMDIR_HORI_LEFT_TOP );
......@@ -37,8 +37,6 @@ TextDirectionListBox::TextDirectionListBox( vcl::Window* pParent, vcl::Window* p
if( !SvtLanguageOptions().IsCTLFontEnabled() )
{
Hide();
if( pWindow1 ) pWindow1->Hide();
if( pWindow2 ) pWindow2->Hide();
}
}
......
......@@ -64,8 +64,7 @@ public:
const css::uno::Reference<css::frame::XModel>& xChartModel,
SfxItemPool& rItemPool,
SdrModel& rDrawModel,
const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory,
const css::awt::Size* pRefSize = nullptr );
const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory );
virtual ~AllDataLabelItemConverter() override;
......@@ -79,8 +78,7 @@ public:
AllTitleItemConverter(
const css::uno::Reference<css::frame::XModel>& xChartModel,
SfxItemPool& rItemPool, SdrModel& rDrawModel,
const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory,
const css::awt::Size* pRefSize = nullptr );
const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory );
virtual ~AllTitleItemConverter() override;
......
......@@ -30,8 +30,7 @@ namespace chart
class TextDirectionListBox : public svx::FrameDirectionListBox
{
public:
explicit TextDirectionListBox( vcl::Window* pParent,
vcl::Window* pWindow1 = nullptr, vcl::Window* pWindow2 = nullptr );
explicit TextDirectionListBox( vcl::Window* pParent );
};
} //namespace chart
......
......@@ -101,8 +101,7 @@ AllDataLabelItemConverter::AllDataLabelItemConverter(
const uno::Reference< frame::XModel > & xChartModel,
SfxItemPool& rItemPool,
SdrModel& rDrawModel,
const uno::Reference< lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
const awt::Size* pRefSize )
const uno::Reference< lang::XMultiServiceFactory > & xNamedPropertyContainerFactory )
: MultipleItemConverter( rItemPool )
{
::std::vector< uno::Reference< chart2::XDataSeries > > aSeriesList(
......@@ -122,7 +121,7 @@ AllDataLabelItemConverter::AllDataLabelItemConverter(
new ::chart::wrapper::DataPointItemConverter(
xChartModel, xContext, xObjectProperties, *aIt, rItemPool, rDrawModel,
xNamedPropertyContainerFactory, GraphicPropertyItemConverter::FILLED_DATA_POINT,
pRefSize, true, false, 0, true, nNumberFormat, nPercentNumberFormat));
nullptr, true, false, 0, true, nNumberFormat, nPercentNumberFormat));
}
}
......@@ -140,8 +139,7 @@ AllTitleItemConverter::AllTitleItemConverter(
const uno::Reference< frame::XModel > & xChartModel,
SfxItemPool& rItemPool,
SdrModel& rDrawModel,
const uno::Reference< lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
const awt::Size* pRefSize )
const uno::Reference< lang::XMultiServiceFactory > & xNamedPropertyContainerFactory )
: MultipleItemConverter( rItemPool )
{
for(sal_Int32 nTitle = TitleHelper::TITLE_BEGIN; nTitle < TitleHelper::NORMAL_TITLE_END; nTitle++ )
......@@ -152,7 +150,7 @@ AllTitleItemConverter::AllTitleItemConverter(
uno::Reference< beans::XPropertySet > xObjectProperties( xTitle, uno::UNO_QUERY);
m_aConverters.push_back(
new ::chart::wrapper::TitleItemConverter(
xObjectProperties, rItemPool, rDrawModel, xNamedPropertyContainerFactory, pRefSize));
xObjectProperties, rItemPool, rDrawModel, xNamedPropertyContainerFactory, nullptr));
}
}
......
......@@ -33,6 +33,8 @@ using namespace com::sun::star;
namespace comphelper {
namespace service_decl {
const char cDelim = ';';
class ServiceDecl::Factory :
public cppu::WeakImplHelper<lang::XSingleComponentFactory,
lang::XServiceInfo>
......@@ -126,7 +128,7 @@ uno::Sequence<OUString> ServiceDecl::getSupportedServiceNames() const
OString const str(m_pServiceNames);
sal_Int32 nIndex = 0;
do {
OString const token( str.getToken( 0, m_cDelim, nIndex ) );
OString const token( str.getToken( 0, cDelim, nIndex ) );
vec.push_back( OUString( token.getStr(), token.getLength(),
RTL_TEXTENCODING_ASCII_US ) );
}
......@@ -140,7 +142,7 @@ bool ServiceDecl::supportsService( OUString const& name ) const
OString const str(m_pServiceNames);
sal_Int32 nIndex = 0;
do {
OString const token( str.getToken( 0, m_cDelim, nIndex ) );
OString const token( str.getToken( 0, cDelim, nIndex ) );
if (name.equalsAsciiL( token.getStr(), token.getLength() ))
return true;
}
......
......@@ -1276,7 +1276,7 @@ css::uno::Reference< css::uno::XInterface > Access::createInstance()
OUString tmplName(
static_cast< SetNode * >(getNode().get())->getDefaultTemplateName());
rtl::Reference< Node > tmpl(
components_.getTemplate(Data::NO_LAYER, tmplName));
components_.getTemplate(tmplName));
if (!tmpl.is()) {
throw css::uno::Exception(
"unknown template " + tmplName,
......
......@@ -224,10 +224,9 @@ rtl::Reference< Node > Components::resolvePathRepresentation(
pathRepresentation, canonicRepresentation, path, finalizedLayer);
}
rtl::Reference< Node > Components::getTemplate(
int layer, OUString const & fullName) const
rtl::Reference< Node > Components::getTemplate(OUString const & fullName) const
{
return data_.getTemplate(layer, fullName);
return data_.getTemplate(Data::NO_LAYER, fullName);
}
void Components::addRootAccess(rtl::Reference< RootAccess > const & access) {
......
......@@ -61,8 +61,7 @@ public:
OUString * canonicRepresenation, std::vector<OUString> * path, int * finalizedLayer)
const;
rtl::Reference< Node > getTemplate(
int layer, OUString const & fullName) const;
rtl::Reference< Node > getTemplate( OUString const & fullName) const;
void addRootAccess(rtl::Reference< RootAccess > const & access);
......
......@@ -94,7 +94,7 @@ sdbcx::ObjectType OIndexColumns::createObject(const OUString& _rName)
nSize,
nDec,
nDataType,
false,false,false,true,
true,
aCatalog, aSchema, aTable);
xRet = pRet;
break;
......
......@@ -109,9 +109,6 @@ sdbcx::ObjectType OKeyColumnsHelper::createObject(const OUString& _rName)
nSize,
nDec,
nDataType,
false,
false,
false,
isCaseSensitive(),
aCatalog,
aSchema,
......
......@@ -175,7 +175,7 @@ bool ODbaseIndex::openIndexFile()
OIndexIterator* ODbaseIndex::createIterator()
{
openIndexFile();
return new OIndexIterator(this, nullptr, nullptr);
return new OIndexIterator(this);
}
bool ODbaseIndex::ConvertToKey(ONDXKey* rKey, sal_uInt32 nRec, const ORowSetValue& rValue)
......
......@@ -56,9 +56,6 @@ sdbcx::ObjectType ODbaseIndexColumns::createObject(const OUString& _rName)
,getINT32(xCol->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION)))
,getINT32(xCol->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE)))
,getINT32(xCol->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE)))
,false
,false
,false
,pTable->getConnection()->getMetaData()->supportsMixedCaseQuotedIdentifiers()
,getString(xCol->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_CATALOGNAME)))
,getString(xCol->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCHEMANAME)))
......
......@@ -33,8 +33,8 @@ using namespace connectivity::dbase;
using namespace connectivity::file;
using namespace com::sun::star::sdbc;
ONDXKey::ONDXKey(sal_uInt32 nRec)
:nRecord(nRec)
ONDXKey::ONDXKey()
:nRecord(0)
{
}
......
......@@ -44,7 +44,7 @@ OHSQLUser::OHSQLUser( const css::uno::Reference< css::sdbc::XConnection >& _xC
OHSQLUser::OHSQLUser( const css::uno::Reference< css::sdbc::XConnection >& _xConnection,
const OUString& Name
) : connectivity::sdbcx::OUser(Name, true)
) : connectivity::sdbcx::OUser(Name,true)
,m_xConnection(_xConnection)
{
construct();
......
......@@ -54,7 +54,7 @@ namespace connectivity { namespace hsqldb
HView::HView( const Reference< XConnection >& _rxConnection, bool _bCaseSensitive,
const OUString& _rSchemaName, const OUString& _rName )
:HView_Base( _bCaseSensitive, _rName, _rxConnection->getMetaData(), 0, OUString(), _rSchemaName, OUString() )
:HView_Base( _bCaseSensitive, _rName, _rxConnection->getMetaData(), OUString(), _rSchemaName, OUString() )
,m_xConnection( _rxConnection )
{
}
......
......@@ -51,7 +51,7 @@ const char *MorkMagicHeader = "// <!-- <mdb:mork:z v=\"1.4\"/> -->";
const char *MorkDictColumnMeta = "<(a=c)>";
MorkParser::MorkParser( int DefaultScope ) :
MorkParser::MorkParser() :
columns_(),
values_(),
mork_(),
......@@ -60,7 +60,7 @@ MorkParser::MorkParser( int DefaultScope ) :
morkData_(),
morkPos_(0),
nextAddValueId_(0x7fffffff),
defaultScope_(DefaultScope),
defaultScope_(0x80),
defaultListScope_(0x81),
defaultTableId_(1),
nowParsing_(NPValues)
......
......@@ -69,7 +69,7 @@ class LO_DLLPUBLIC_MORK MorkParser
{
public:
explicit MorkParser( int defaultScope = 0x80 );
explicit MorkParser();
/// Open and parse mork file
......
......@@ -44,7 +44,7 @@ OMySQLUser::OMySQLUser( const css::uno::Reference< css::sdbc::XConnection >& _xC
OMySQLUser::OMySQLUser( const css::uno::Reference< css::sdbc::XConnection >& _xConnection,
const OUString& Name
) : connectivity::sdbcx::OUser(Name, true)
) : connectivity::sdbcx::OUser(Name,true)
,m_xConnection(_xConnection)
{
construct();
......
......@@ -60,7 +60,6 @@ sdbcx::ObjectType OViews::createObject(const OUString& _rName)
return new ::connectivity::sdbcx::OView(isCaseSensitive(),
sTable,
m_xMetaData,
0,
OUString(),
sSchema,
sCatalog
......
......@@ -76,25 +76,12 @@ namespace connectivity
sal_Int32 _aColumnDisplaySize=0,
sal_Int32 _aPrecision=0,
sal_Int32 _aScale=0,
sal_Int32 _aColumnType=0,
bool _aAutoIncrement=false,
bool _aCaseSensitive=false,
bool _aSearchable=true,
bool _aCurrency=false,
bool _aSigned=false,
bool _aReadOnly=true,
bool _aWritable=false,
bool _aDefinitelyWritable=false,
const OUString &_aColumnLabel = OUString(),
const OUString &_aColumnTypeName = OUString(),
const OUString &_aColumnServiceName = OUString())
sal_Int32 _aColumnType=0)
: m_TableName(_aTableName),
m_ColumnName(_aColumnName),
m_ColumnLabel(_aColumnLabel),
m_ColumnTypeName(_aColumnTypeName),
m_ColumnServiceName(_aColumnServiceName),
m_ColumnLabel(),
m_ColumnTypeName(),
m_ColumnServiceName(),
m_Nullable(_aNullable),
m_ColumnDisplaySize(_aColumnDisplaySize),
......@@ -102,14 +89,14 @@ namespace connectivity
m_Scale(_aScale),
m_ColumnType(_aColumnType),
m_AutoIncrement(_aAutoIncrement),
m_CaseSensitive(_aCaseSensitive),
m_Searchable(_aSearchable),
m_Currency(_aCurrency),
m_Signed(_aSigned),
m_ReadOnly(_aReadOnly),
m_Writable(_aWritable),
m_DefinitelyWritable(_aDefinitelyWritable)
m_AutoIncrement(false),
m_CaseSensitive(false),
m_Searchable(true),
m_Currency(false),
m_Signed(false),
m_ReadOnly(true),
m_Writable(false),
m_DefinitelyWritable(false)
{
if(m_ColumnLabel.isEmpty())
m_ColumnLabel = _aColumnName;
......
......@@ -52,11 +52,9 @@ namespace connectivity
ONDXKey* GetNextKey();
public:
OIndexIterator(ODbaseIndex* pInd,
file::OBoolOperator* pOp,
const file::OOperand* pOper)
:m_pOperator(pOp)
,m_pOperand(pOper)
OIndexIterator(ODbaseIndex* pInd)
:m_pOperator(nullptr)
,m_pOperand(nullptr)
,m_xIndex(pInd)
,m_nCurNode(NODE_NOTFOUND)
{
......
......@@ -48,7 +48,7 @@ namespace connectivity
ORowSetValue xValue; /* Key values */
public:
ONDXKey(sal_uInt32 nRec=0);
ONDXKey();
ONDXKey(const ORowSetValue& rVal, sal_Int32 eType, sal_uInt32 nRec);
ONDXKey(const OUString& aStr, sal_uInt32 nRec = 0);
ONDXKey(double aVal, sal_uInt32 nRec = 0);
......@@ -90,7 +90,7 @@ namespace connectivity
sal_uInt32 nPagePos; // Position in the index file
public:
ONDXPagePtr(sal_uInt32 nPos = 0) : mpPage(nullptr), nPagePos(nPos) {}
ONDXPagePtr() : mpPage(nullptr), nPagePos(0) {}
ONDXPagePtr(const ONDXPagePtr& rRef);
ONDXPagePtr(ONDXPage* pRefPage);
inline ~ONDXPagePtr();
......
......@@ -61,7 +61,7 @@ sal_Bool SAL_CALL OIndex::supportsService( const OUString& _rServiceName ) throw
return cppu::supportsService(this, _rServiceName);
}
OIndex::OIndex(bool _bCase) : ODescriptor_BASE(m_aMutex)
OIndex::OIndex(bool _bCase) : ODescriptor_BASE(m_aMutex)
, ODescriptor(ODescriptor_BASE::rBHelper,_bCase,true)
,m_IsUnique(false)
,m_IsPrimaryKeyIndex(false)
......@@ -76,7 +76,7 @@ OIndex::OIndex( const OUString& Name,
bool _isPrimaryKeyIndex,
bool _isClustered,
bool _bCase) : ODescriptor_BASE(m_aMutex)
,ODescriptor(ODescriptor_BASE::rBHelper,_bCase)
,ODescriptor(ODescriptor_BASE::rBHelper, _bCase)
,m_Catalog(Catalog)
,m_IsUnique(_isUnique)
,m_IsPrimaryKeyIndex(_isPrimaryKeyIndex)
......
......@@ -63,9 +63,6 @@ OIndexColumn::OIndexColumn( bool IsAscending,
sal_Int32 Precision,
sal_Int32 Scale,
sal_Int32 Type,
bool IsAutoIncrement,
bool IsRowVersion,
bool IsCurrency,
bool _bCase,
const OUString& CatalogName,
const OUString& SchemaName,
......@@ -78,9 +75,9 @@ OIndexColumn::OIndexColumn( bool IsAscending,
Precision,
Scale,
Type,
IsAutoIncrement,
IsRowVersion,
IsCurrency,
false/*IsAutoIncrement*/,
false/*IsRowVersion*/,
false/*IsCurrency*/,
_bCase,
CatalogName,
SchemaName,
......
......@@ -68,7 +68,7 @@ OKey::OKey(bool _bCase) : ODescriptor_BASE(m_aMutex)
OKey::OKey(const OUString& Name,const std::shared_ptr<KeyProperties>& _rProps, bool _bCase)
: ODescriptor_BASE(m_aMutex)
,ODescriptor(ODescriptor_BASE::rBHelper,_bCase)
,ODescriptor(ODescriptor_BASE::rBHelper, _bCase)
,m_aProps(_rProps)
,m_pColumns(nullptr)
{
......
......@@ -63,9 +63,6 @@ OKeyColumn::OKeyColumn( const OUString& ReferencedColumn,
sal_Int32 Precision,
sal_Int32 Scale,
sal_Int32 Type,
bool IsAutoIncrement,
bool IsRowVersion,
bool IsCurrency,
bool _bCase,
const OUString& CatalogName,
const OUString& SchemaName,
......@@ -78,9 +75,9 @@ OKeyColumn::OKeyColumn( const OUString& ReferencedColumn,
Precision,
Scale,
Type,
IsAutoIncrement,
IsRowVersion,
IsCurrency,
false/*IsAutoIncrement*/,
false/*IsRowVersion*/,
false/*IsCurrency*/,
_bCase,
CatalogName,
SchemaName,
......
......@@ -37,14 +37,13 @@ IMPLEMENT_SERVICE_INFO(OView,"com.sun.star.sdbcx.VView","com.sun.star.sdbcx.View
OView::OView(bool _bCase,
const OUString& Name,
const css::uno::Reference< css::sdbc::XDatabaseMetaData >& _xMetaData,
sal_Int32 CheckOption,
const OUString& Command,
const OUString& SchemaName,
const OUString& CatalogName) : ODescriptor(::comphelper::OMutexAndBroadcastHelper::m_aBHelper,_bCase)
,m_CatalogName(CatalogName)
,m_SchemaName(SchemaName)
,m_Command(Command)
,m_CheckOption(CheckOption)
,m_CheckOption(0)
,m_xMetaData(_xMetaData)
{
......
......@@ -100,8 +100,7 @@ namespace svx
public:
void Paint( OutputDevice& _rDevice, const Rectangle& _rRect, DrawTextFlags _nTextStyle,
Rectangle* _pPrimaryLocation, Rectangle* _pSecondaryLocation,
vcl::ControlLayoutData* _pLayoutData = nullptr );
Rectangle* _pPrimaryLocation, Rectangle* _pSecondaryLocation );
};
PseudoRubyText::PseudoRubyText()
......@@ -118,13 +117,8 @@ namespace svx
void PseudoRubyText::Paint(vcl::RenderContext& rRenderContext, const Rectangle& _rRect, DrawTextFlags _nTextStyle,
Rectangle* _pPrimaryLocation, Rectangle* _pSecondaryLocation,
vcl::ControlLayoutData* _pLayoutData )
Rectangle* _pPrimaryLocation, Rectangle* _pSecondaryLocation )
{
bool bLayoutOnly = (nullptr != _pLayoutData);
MetricVector* pTextMetrics = bLayoutOnly ? &_pLayoutData->m_aUnicodeBoundRects : nullptr;
OUString* pDisplayText = bLayoutOnly ? &_pLayoutData->m_aDisplayText : nullptr;
Size aPlaygroundSize(_rRect.GetSize());
// the font for the secondary text:
......@@ -194,10 +188,10 @@ namespace svx
nDrawTextStyle &= ~DrawTextFlags( DrawTextFlags::Right | DrawTextFlags::Left | DrawTextFlags::Bottom | DrawTextFlags::Top );
nDrawTextStyle |= DrawTextFlags::Center | DrawTextFlags::VCenter;
rRenderContext.DrawText( aPrimaryRect, m_sPrimaryText, nDrawTextStyle, pTextMetrics, pDisplayText );
rRenderContext.DrawText( aPrimaryRect, m_sPrimaryText, nDrawTextStyle );
{
FontSwitch aFontRestore(rRenderContext, aSmallerFont);
rRenderContext.DrawText( aSecondaryRect, m_sSecondaryText, nDrawTextStyle, pTextMetrics, pDisplayText );
rRenderContext.DrawText( aSecondaryRect, m_sSecondaryText, nDrawTextStyle );
}
// outta here
......
......@@ -155,12 +155,11 @@ VCL_BUILDER_FACTORY_ARGS(SvtIconChoiceCtrl,
WB_NODRAGSELECTION | WB_TABSTOP);
IconChoiceDialog::IconChoiceDialog ( vcl::Window* pParent, const OUString& rID,
const OUString& rUIXMLDescription,
const SfxItemSet *pItemSet )
const OUString& rUIXMLDescription )
: ModalDialog ( pParent, rID, rUIXMLDescription ),
mnCurrentPageId ( USHRT_MAX ),
pSet ( pItemSet ),
pSet ( nullptr ),
pOutSet ( nullptr ),
pExampleSet ( nullptr ),
pRanges ( nullptr ),
......@@ -273,12 +272,9 @@ SvxIconChoiceCtrlEntry* IconChoiceDialog::AddTabPage(
CreatePage pCreateFunc /* != 0 */
)
{
IconChoicePageData* pData = new IconChoicePageData ( nId, pCreateFunc,
nullptr );
IconChoicePageData* pData = new IconChoicePageData ( nId, pCreateFunc );
maPageList.push_back( pData );
pData->fnGetRanges = nullptr;
sal_uInt16 *pId = new sal_uInt16 ( nId );
SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->InsertEntry( rIconText, rChoiceIcon );
pEntry->SetUserData ( static_cast<void*>(pId) );
......@@ -531,20 +527,6 @@ const sal_uInt16* IconChoiceDialog::GetInputRanges( const SfxItemPool& rPool )
std::vector<sal_uInt16> aUS;
size_t nCount = maPageList.size();
for ( size_t i = 0; i < nCount; ++i )
{
IconChoicePageData* pData = maPageList[ i ];
if ( pData->fnGetRanges )
{
const sal_uInt16* pTmpRanges = (pData->fnGetRanges)();
const sal_uInt16* pIter = pTmpRanges;
sal_uInt16 nLen;
for( nLen = 0; *pIter; ++nLen, ++pIter )
;
aUS.insert( aUS.end(), pTmpRanges, pTmpRanges + nLen );
}
}
// remove double Id's
{
......
......@@ -21,8 +21,8 @@
#include "dialmgr.hxx"
#include "newtabledlg.hxx"
SvxNewTableDialog::SvxNewTableDialog( vcl::Window* pParent )
: m_pDialog( VclPtr<ModalDialog>::Create( pParent, "NewTableDialog", "cui/ui/newtabledialog.ui" ) )
SvxNewTableDialog::SvxNewTableDialog()
: m_pDialog( VclPtr<ModalDialog>::Create( nullptr, "NewTableDialog", "cui/ui/newtabledialog.ui" ) )
{
m_pDialog->get(mpNumRows, "rows");
m_pDialog->get(mpNumColumns, "columns");
......
......@@ -71,7 +71,7 @@ using namespace css::document;
void ShowErrorDialog( const Any& aException )
{
std::unique_ptr<SvxScriptErrorDialog> pDlg(new SvxScriptErrorDialog( nullptr, aException ));
std::unique_ptr<SvxScriptErrorDialog> pDlg(new SvxScriptErrorDialog( aException ));
pDlg->Execute();
}
......@@ -1434,8 +1434,7 @@ OUString GetErrorMessage( const css::uno::Any& aException )
}
SvxScriptErrorDialog::SvxScriptErrorDialog(
vcl::Window* , css::uno::Any aException )
SvxScriptErrorDialog::SvxScriptErrorDialog( css::uno::Any aException )
: m_sMessage()
{
SolarMutexGuard aGuard;
......
......@@ -956,7 +956,7 @@ VclAbstractRefreshableDialog * AbstractDialogFactory_Impl::CreateActualizeProgre
VclAbstractDialog*
AbstractDialogFactory_Impl::CreateScriptErrorDialog(const css::uno::Any& rException)
{
return new SvxScriptErrorDialog(nullptr, rException);
return new SvxScriptErrorDialog(rException);
}
AbstractScriptSelectorDialog*
......@@ -1506,7 +1506,7 @@ SvxAbstractSplittTableDialog* AbstractDialogFactory_Impl::CreateSvxSplittTableDi
SvxAbstractNewTableDialog* AbstractDialogFactory_Impl::CreateSvxNewTableDialog()
{
return new SvxNewTableDialog( nullptr );
return new SvxNewTableDialog;
}
VclAbstractDialog* AbstractDialogFactory_Impl::CreateOptionsDialog(
......
......@@ -73,8 +73,8 @@ class OfaACorrCheckListBox : public SvSimpleTable
virtual void KeyInput( const KeyEvent& rKEvt ) override;
public:
OfaACorrCheckListBox(SvSimpleTableContainer& rParent, WinBits nBits = WB_BORDER)
: SvSimpleTable(rParent, nBits)
OfaACorrCheckListBox(SvSimpleTableContainer& rParent)
: SvSimpleTable(rParent, WB_BORDER)
{
}
......
......@@ -39,22 +39,19 @@ class IconChoicePage;
// Create-Function
typedef VclPtr<IconChoicePage> (*CreatePage)(vcl::Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet &rAttrSet);
typedef const sal_uInt16* (*GetPageRanges)(); // gives international Which-value
/// Data-structure for pages in dialog
struct IconChoicePageData
{
sal_uInt16 nId;
CreatePage fnCreatePage; ///< pointer to the factory
GetPageRanges fnGetRanges; ///< pointer to the ranges-function
VclPtr<IconChoicePage> pPage; ///< the TabPage itself
bool bRefresh; ///< Flag: page has to be newly initialized
// constructor
IconChoicePageData( sal_uInt16 Id, CreatePage fnPage, GetPageRanges fnRanges )
IconChoicePageData( sal_uInt16 Id, CreatePage fnPage )
: nId ( Id ),
fnCreatePage ( fnPage ),
fnGetRanges ( fnRanges ),
pPage ( nullptr ),
bRefresh ( false )
{}
......@@ -154,8 +151,7 @@ protected:
public:
// the IconChoiceCtrl's could also be set in the Ctor
IconChoiceDialog ( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription,
const SfxItemSet * pItemSet = nullptr );
IconChoiceDialog ( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription );
virtual ~IconChoiceDialog () override;
virtual void dispose() override;
......
......@@ -34,7 +34,7 @@ private:
VclPtr<NumericField> mpNumRows;
public:
SvxNewTableDialog( vcl::Window* pWindow );
SvxNewTableDialog();
virtual ~SvxNewTableDialog() override;
virtual short Execute() override;
......
......@@ -53,7 +53,7 @@ protected:
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
public:
SvxNumberPreview(vcl::Window* pParent, WinBits nStyle = WB_BORDER);
SvxNumberPreview(vcl::Window* pParent);
void NotifyChange( const OUString& rPrevStr, const Color* pColor = nullptr );
};
......
......@@ -190,7 +190,7 @@ private:
public:
SvxScriptErrorDialog( vcl::Window* parent, css::uno::Any aException );
SvxScriptErrorDialog( css::uno::Any aException );
virtual ~SvxScriptErrorDialog() override;
......
......@@ -93,7 +93,7 @@ namespace offapp
++aLoopDrivers
)
{
aSettings.push_back(DriverPooling(*aLoopDrivers, 120));
aSettings.push_back(DriverPooling(*aLoopDrivers));
}
// then look for which of them settings are stored in the configuration
......@@ -121,7 +121,7 @@ namespace offapp
if (aLookup == aSettings.end())
{ // do not know the driver - add it
aSettings.push_back(DriverPooling(sThisDriverName, 120));
aSettings.push_back(DriverPooling(sThisDriverName));
// and the position of the new entry
aLookup = aSettings.end();
......
......@@ -23,10 +23,10 @@
namespace offapp
{
DriverPooling::DriverPooling( const OUString& _rName, const sal_Int32 _nTimeout )
DriverPooling::DriverPooling( const OUString& _rName )
:sName(_rName)
,bEnabled(false)
,nTimeoutSeconds(_nTimeout)
,nTimeoutSeconds(120)
{
}
......
......@@ -37,7 +37,7 @@ namespace offapp
bool bEnabled;
sal_Int32 nTimeoutSeconds;
DriverPooling( const OUString& _rName, const sal_Int32 _nTimeout );
DriverPooling( const OUString& _rName );
bool operator == (const DriverPooling& _rR) const;
bool operator != (const DriverPooling& _rR) const { return !operator ==(_rR); }
......
......@@ -77,8 +77,8 @@ const sal_uInt16 SvxNumberFormatTabPage::pRanges[] =
#*
#************************************************************************/
SvxNumberPreview::SvxNumberPreview(vcl::Window* pParent, WinBits nStyle)
: Window(pParent, nStyle)
SvxNumberPreview::SvxNumberPreview(vcl::Window* pParent)
: Window(pParent, WB_BORDER)
, mnPos(-1)
, mnChar(0x0)
{
......
......@@ -50,7 +50,7 @@ namespace dbaccess
// View
View::View( const Reference< XConnection >& _rxConnection, bool _bCaseSensitive,
const OUString& _rCatalogName,const OUString& _rSchemaName, const OUString& _rName )
:View_Base( _bCaseSensitive, _rName, _rxConnection->getMetaData(), 0, OUString(), _rSchemaName, _rCatalogName )
:View_Base( _bCaseSensitive, _rName, _rxConnection->getMetaData(), OUString(), _rSchemaName, _rCatalogName )
{
m_nCommandHandle = getProperty(PROPERTY_COMMAND).Handle;
try
......
......@@ -52,17 +52,9 @@ namespace canvas
@param rTarget
The target canvas the repaint should happen on.
@param bFailForChangedViewTransform
When true, derived classes will never receive doRedraw()
calls with dissimilar view transformations and
bSameViewTransform set to false. This is useful for cached
objects where re-transforming the generated output is not
desirable, e.g. for hinted font output.
*/
CachedPrimitiveBase( const css::rendering::ViewState& rUsedViewState,
const css::uno::Reference< css::rendering::XCanvas >& rTarget,
bool bFailForChangedViewTransform );
const css::uno::Reference< css::rendering::XCanvas >& rTarget );
/// Dispose all internal references
virtual void SAL_CALL disposing() override;
......@@ -106,7 +98,6 @@ namespace canvas
css::rendering::ViewState maUsedViewState;
css::uno::Reference< css::rendering::XCanvas > mxTarget;
const bool mbFailForChangedViewTransform;
};
}
......
......@@ -109,11 +109,10 @@ public:
template <typename ImplClassT>
ServiceDecl( ImplClassT const& implClass,
char const* pImplName,
char const* pSupportedServiceNames, char cDelim = ';' )
char const* pSupportedServiceNames )
: m_createFunc(implClass.m_createFunc),
m_pImplName(pImplName),
m_pServiceNames(pSupportedServiceNames),
m_cDelim(cDelim) {}
m_pServiceNames(pSupportedServiceNames) {}
/// @internal gets called by component_getFactoryHelper()
void * getFactory( sal_Char const* pImplName ) const;
......@@ -134,7 +133,6 @@ private:
detail::CreateFuncF const m_createFunc;
char const* const m_pImplName;
char const* const m_pServiceNames;
char const m_cDelim;
};
/** To specify whether the implementation class expects arguments
......
......@@ -47,9 +47,6 @@ namespace connectivity
sal_Int32 Precision,
sal_Int32 Scale,
sal_Int32 Type,
bool IsAutoIncrement,
bool IsRowVersion,
bool IsCurrency,
bool _bCase,
const OUString& CatalogName,
const OUString& SchemaName,
......
......@@ -47,9 +47,6 @@ namespace connectivity
sal_Int32 Precision,
sal_Int32 Scale,
sal_Int32 Type,
bool IsAutoIncrement,
bool IsRowVersion,
bool IsCurrency,
bool _bCase,
const OUString& CatalogName,
const OUString& SchemaName,
......
......@@ -67,7 +67,6 @@ namespace connectivity
OView( bool _bCase,
const OUString& _rName,
const css::uno::Reference< css::sdbc::XDatabaseMetaData >& _xMetaData,
sal_Int32 _nCheckOption = 0,
const OUString& _rCommand = OUString(),
const OUString& _rSchemaName = OUString(),
const OUString& _rCatalogName = OUString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment