summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-23 10:52:46 +0200
committerNoel Grandin <noel@peralex.com>2016-03-23 11:22:34 +0200
commit6dc6b7914057934fcab41212472bdee51a48079b (patch)
treeafe611f1702ca6267db1d64e34cd10cf992683db
parent26d02747847a8ec9745713d7e2409c72b5fd7138 (diff)
loplugin:constantparam in cui
Change-Id: Ia495bf0810355c7c74fd7de17759432832ea6711
-rw-r--r--cui/source/options/optfltr.cxx9
-rw-r--r--cui/source/options/optfltr.hxx2
2 files changed, 5 insertions, 6 deletions
diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx
index 937eed49972c..2bf67f94d639 100644
--- a/cui/source/options/optfltr.cxx
+++ b/cui/source/options/optfltr.cxx
@@ -276,7 +276,7 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet* )
InsertEntry( sChgToFromCalc, static_cast< sal_IntPtr >( Calc ) );
if ( aModuleOpt.IsModuleInstalled( SvtModuleOptions::EModule::IMPRESS ) )
InsertEntry( sChgToFromImpress, static_cast< sal_IntPtr >( Impress ) );
- InsertEntry( sChgToFromSmartArt, static_cast< sal_IntPtr >( SmartArt ), true, false );
+ InsertEntry( sChgToFromSmartArt, static_cast< sal_IntPtr >( SmartArt ), false );
static struct ChkCBoxEntries{
MSFltrPg2_CheckBoxEntries eType;
@@ -325,11 +325,11 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet* )
void OfaMSFilterTabPage2::InsertEntry( const OUString& _rTxt, sal_IntPtr _nType )
{
- InsertEntry( _rTxt, _nType, true, true );
+ InsertEntry( _rTxt, _nType, true );
}
void OfaMSFilterTabPage2::InsertEntry( const OUString& _rTxt, sal_IntPtr _nType,
- bool loadEnabled, bool saveEnabled )
+ bool saveEnabled )
{
SvTreeListEntry* pEntry = new SvTreeListEntry;
@@ -339,8 +339,7 @@ void OfaMSFilterTabPage2::InsertEntry( const OUString& _rTxt, sal_IntPtr _nType,
pEntry->AddItem(std::unique_ptr<SvLBoxContextBmp>(
new SvLBoxContextBmp(Image(), Image(), false)));
pEntry->AddItem(std::unique_ptr<SvLBoxButton>(
- new SvLBoxButton(loadEnabled ? SvLBoxButtonKind::EnabledCheckbox
- : SvLBoxButtonKind::DisabledCheckbox,
+ new SvLBoxButton(SvLBoxButtonKind::EnabledCheckbox,
pCheckButtonData)));
pEntry->AddItem(std::unique_ptr<SvLBoxButton>(
new SvLBoxButton(saveEnabled ? SvLBoxButtonKind::EnabledCheckbox
diff --git a/cui/source/options/optfltr.hxx b/cui/source/options/optfltr.hxx
index 1607a52c0c54..ac825b78a798 100644
--- a/cui/source/options/optfltr.hxx
+++ b/cui/source/options/optfltr.hxx
@@ -92,7 +92,7 @@ class OfaMSFilterTabPage2 : public SfxTabPage
void InsertEntry( const OUString& _rTxt, sal_IntPtr _nType );
void InsertEntry( const OUString& _rTxt, sal_IntPtr _nType,
- bool loadEnabled, bool saveEnabled );
+ bool saveEnabled );
SvTreeListEntry* GetEntry4Type( sal_IntPtr _nType ) const;
public: