[Libreoffice-commits] core.git: svtools/source
Stephan Bergmann
sbergman at redhat.com
Mon Jan 4 09:08:32 PST 2016
svtools/source/config/colorcfg.cxx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit b4346bb26a90a3a80a93f308a5a6e89a134b9946
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jan 4 18:07:55 2016 +0100
loplugin:staticmethods
Change-Id: Iedeb2b87da0f230961c1c22275f980acbe7a9e5b
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index 2c0f1a5..568fbcf 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -71,8 +71,6 @@ class ColorConfig_Impl : public utl::ConfigItem
OUString m_sLoadedScheme;
bool m_bAutoDetectSystemHC;
- uno::Sequence< OUString> GetPropertyNames(const OUString& rScheme);
-
virtual void ImplCommit() override;
public:
@@ -106,7 +104,9 @@ public:
void ImplUpdateApplicationSettings();
};
-uno::Sequence< OUString> ColorConfig_Impl::GetPropertyNames(const OUString& rScheme)
+namespace {
+
+uno::Sequence< OUString> GetPropertyNames(const OUString& rScheme)
{
uno::Sequence<OUString> aNames(2 * ColorConfigEntryCount);
OUString* pNames = aNames.getArray();
@@ -188,6 +188,8 @@ uno::Sequence< OUString> ColorConfig_Impl::GetPropertyNames(const OUString& rSch
return aNames;
}
+}
+
ColorConfig_Impl::ColorConfig_Impl(bool bEditMode) :
ConfigItem("Office.UI/ColorScheme"),
m_bEditMode(bEditMode),
More information about the Libreoffice-commits
mailing list