summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-14 16:45:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-15 07:59:41 +0000
commitf8bf15e8ed3bf1116bc77921eb22228705903297 (patch)
treee7c624a8f78cf10f60306e6c0b6d0552f179b605 /unotools
parent81dde672f15965cf77b041c1991bd260c4774278 (diff)
clang-cl loplugin: unotools
Change-Id: I1bbdae6b27a04321b232851f5f45ac2248b55835 Reviewed-on: https://gerrit.libreoffice.org/29843 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/fltrcfg.cxx28
1 files changed, 16 insertions, 12 deletions
diff --git a/unotools/source/config/fltrcfg.cxx b/unotools/source/config/fltrcfg.cxx
index 0cb2b29f12e7..c26e4d5674ac 100644
--- a/unotools/source/config/fltrcfg.cxx
+++ b/unotools/source/config/fltrcfg.cxx
@@ -292,19 +292,9 @@ bool SvtFilterOptions_Impl::IsFlag( sal_uLong nFlag ) const
return bRet;
}
-SvtFilterOptions::SvtFilterOptions() :
- ConfigItem( "Office.Common/Filter/Microsoft" ),
- pImpl(new SvtFilterOptions_Impl)
-{
- EnableNotification(GetPropertyNames());
- Load();
-}
+namespace {
-SvtFilterOptions::~SvtFilterOptions()
-{
-}
-
-const Sequence<OUString>& SvtFilterOptions::GetPropertyNames()
+const Sequence<OUString>& GetPropertyNames()
{
static Sequence<OUString> aNames;
if(!aNames.getLength())
@@ -335,6 +325,20 @@ const Sequence<OUString>& SvtFilterOptions::GetPropertyNames()
return aNames;
}
+}
+
+SvtFilterOptions::SvtFilterOptions() :
+ ConfigItem( "Office.Common/Filter/Microsoft" ),
+ pImpl(new SvtFilterOptions_Impl)
+{
+ EnableNotification(GetPropertyNames());
+ Load();
+}
+
+SvtFilterOptions::~SvtFilterOptions()
+{
+}
+
static sal_uLong lcl_GetFlag(sal_Int32 nProp)
{
sal_uLong nFlag = 0;