summaryrefslogtreecommitdiff
path: root/svtools/source/config
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-27 14:25:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-29 07:07:13 +0000
commit27319418ed7601fa62993e39894bb8f8902a88d0 (patch)
treee3d7d8642a6896e3820be916fec1e306429eb3ea /svtools/source/config
parentfd586445a47d50ebfff67a7d5e4a329cf064cb92 (diff)
loplugin:countusersofdefaultparams in store..svtools
Change-Id: I15b4400bddc5a4d0e3de5dfffe18b7e493f97df6 Reviewed-on: https://gerrit.libreoffice.org/27580 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools/source/config')
-rw-r--r--svtools/source/config/miscopt.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index 10a6fe9e8f51..63fe6a60685a 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -159,7 +159,7 @@ public:
static OUString GetIconTheme();
- enum SetModifiedFlag { SET_MODIFIED, DONT_SET_MODIFIED };
+ enum class SetModifiedFlag { SET, DONT_SET };
/** Set the icon theme
*
@@ -174,7 +174,7 @@ public:
* during initialization in the constructor.
*/
void
- SetIconTheme(const OUString &theme, SetModifiedFlag setModified = SET_MODIFIED );
+ SetIconTheme(const OUString &theme, SetModifiedFlag setModified );
bool IconThemeWasSetAutomatically()
{return m_bIconThemeWasSetAutomatically;}
@@ -340,7 +340,7 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl()
{
OUString aIconTheme;
if (seqValues[nProperty] >>= aIconTheme)
- SetIconTheme(aIconTheme, DONT_SET_MODIFIED);
+ SetIconTheme(aIconTheme, SetModifiedFlag::DONT_SET);
else
OSL_FAIL("Wrong type of \"Misc\\SymbolStyle\"!" );
@@ -463,7 +463,7 @@ void SvtMiscOptions_Impl::Load( const Sequence< OUString >& rPropertyNames )
case PROPERTYHANDLE_SYMBOLSTYLE : {
OUString aIconTheme;
if (seqValues[nProperty] >>= aIconTheme)
- SetIconTheme(aIconTheme, DONT_SET_MODIFIED);
+ SetIconTheme(aIconTheme, SetModifiedFlag::DONT_SET);
else
OSL_FAIL("Wrong type of \"Misc\\SymbolStyle\"!" );
}
@@ -546,7 +546,7 @@ SvtMiscOptions_Impl::SetIconTheme(const OUString &rName, SetModifiedFlag setModi
Application::MergeSystemSettings( aAllSettings );
Application::SetSettings(aAllSettings);
- if (setModified == SET_MODIFIED) {
+ if (setModified == SetModifiedFlag::SET) {
SetModified();
}
CallListeners();
@@ -784,7 +784,7 @@ OUString SvtMiscOptions::GetIconTheme() const
void SvtMiscOptions::SetIconTheme(const OUString& iconTheme)
{
- m_pImpl->SetIconTheme(iconTheme);
+ m_pImpl->SetIconTheme(iconTheme, SvtMiscOptions_Impl::SetModifiedFlag::SET);
}
bool SvtMiscOptions::DisableUICustomization() const