diff --git a/writerfilter/source/dmapper/PropertyIds.cxx b/writerfilter/source/dmapper/PropertyIds.cxx index 1b4e8abe4082..f6e6f69c13a9 100644 --- a/writerfilter/source/dmapper/PropertyIds.cxx +++ b/writerfilter/source/dmapper/PropertyIds.cxx @@ -16,6 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include #include #include "PropertyIds.hxx" #include @@ -326,10 +327,15 @@ const OUString& PropertyNameSupplier::GetName( PropertyIds eId ) const } return aIt->second; } + +namespace +{ + class thePropertyNameSupplier : public rtl::Static {}; +} + PropertyNameSupplier& PropertyNameSupplier::GetPropertyNameSupplier() { - static PropertyNameSupplier aNameSupplier; - return aNameSupplier; + return thePropertyNameSupplier::get(); } } //namespace dmapper