diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 08:31:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 09:19:32 +0200 |
commit | 2e0a25ce2b87d3a4bbf944025fc3720933fb391d (patch) | |
tree | 57bd8b7c4a4cfe2c0bf5072b25f1d525096d4ff2 /sd/source | |
parent | b02b3bcf4465c9ccb3edcaa26e090db0581cba9e (diff) |
loplugin:constantparam
Change-Id: Ic87f0cc863490858b7cc7e74a7f90ec31992dd53
Reviewed-on: https://gerrit.libreoffice.org/42089
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/app/optsitem.cxx | 10 | ||||
-rw-r--r-- | sd/source/ui/inc/optsitem.hxx | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx index 0f67b818113d..ae90c3ffeb76 100644 --- a/sd/source/ui/app/optsitem.cxx +++ b/sd/source/ui/app/optsitem.cxx @@ -338,12 +338,10 @@ void SdOptionsLayoutItem::SetOptions( SdOptions* pOpts ) const |* \************************************************************************/ -SdOptionsContents::SdOptionsContents(bool bImpress, bool bUseConfig) : - SdOptionsGeneric( bImpress, bUseConfig ? - ( bImpress ? +SdOptionsContents::SdOptionsContents(bool bImpress) : + SdOptionsGeneric( bImpress, bImpress ? OUString( "Office.Impress/Content" ) : - OUString( "Office.Draw/Content" ) ) : - OUString() ) + OUString( "Office.Draw/Content" ) ) { EnableModify( true ); } @@ -1363,7 +1361,7 @@ void SdOptionsPrintItem::SetOptions( SdOptions* pOpts ) const SdOptions::SdOptions(bool bImpress) : SdOptionsLayout( bImpress, true ), - SdOptionsContents( bImpress, true ), + SdOptionsContents( bImpress ), SdOptionsMisc( bImpress, true ), SdOptionsSnap( bImpress, true ), SdOptionsZoom( bImpress ), diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx index 1eb581b6f65c..d92a6c72c392 100644 --- a/sd/source/ui/inc/optsitem.hxx +++ b/sd/source/ui/inc/optsitem.hxx @@ -171,7 +171,7 @@ protected: public: - SdOptionsContents(bool bImpress, bool bUseConfig); + SdOptionsContents(bool bImpress); bool operator==( const SdOptionsContents& rOpt ) const; }; |