summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/PropertyIds.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/dmapper/PropertyIds.cxx')
-rw-r--r--writerfilter/source/dmapper/PropertyIds.cxx10
1 files changed, 8 insertions, 2 deletions
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 <rtl/instance.hxx>
#include <rtl/ustring.hxx>
#include "PropertyIds.hxx"
#include <map>
@@ -326,10 +327,15 @@ const OUString& PropertyNameSupplier::GetName( PropertyIds eId ) const
}
return aIt->second;
}
+
+namespace
+{
+ class thePropertyNameSupplier : public rtl::Static<PropertyNameSupplier, PropertyNameSupplier> {};
+}
+
PropertyNameSupplier& PropertyNameSupplier::GetPropertyNameSupplier()
{
- static PropertyNameSupplier aNameSupplier;
- return aNameSupplier;
+ return thePropertyNameSupplier::get();
}
} //namespace dmapper