diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-11-11 20:59:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-13 13:01:06 +0100 |
commit | bf2048b1d242c6d5b242f18903612cedf8eaef8e (patch) | |
tree | 2d4dc68a640b58f6cc1dc1b8056565a961988bf7 /include/oox | |
parent | a339ebca55f53db5f0b72b26fcfbb3aaa2b2a825 (diff) |
rtl::Static->thread-safe static in StaticNamespaceMap
Change-Id: Iea6f7f96685e332407288af7ada36527acc83a8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125119
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/token/namespacemap.hxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/oox/token/namespacemap.hxx b/include/oox/token/namespacemap.hxx index 26e4fdce95f7..c02a39ba7bf8 100644 --- a/include/oox/token/namespacemap.hxx +++ b/include/oox/token/namespacemap.hxx @@ -22,7 +22,6 @@ #include <map> -#include <rtl/instance.hxx> #include <rtl/ustring.hxx> #include <sal/types.h> @@ -40,10 +39,8 @@ struct NamespaceMap typedef std::map<sal_Int32, OUString>::const_iterator const_iterator; }; -/** Thread-save singleton of a map of all supported XML namespace URLs. */ -struct StaticNamespaceMap : public ::rtl::Static<NamespaceMap, StaticNamespaceMap> -{ -}; +/** Thread-safe singleton of a map of all supported XML namespace URLs. */ +NamespaceMap& StaticNamespaceMap(); } // namespace oox |