summaryrefslogtreecommitdiff
path: root/include/oox/token
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-11-07 18:45:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-08 07:43:09 +0100
commita75324ccabcf09c0f1bc7a1a43256aa37f0da751 (patch)
tree6de2ef70e4c0a3006944454652681858c946b871 /include/oox/token
parent01878ce321dbbffbc877fbe9eb399dec95f99755 (diff)
rtl::Instance->thread-safe static in PropertyNameVector
Change-Id: I3f595585b78c9e5ac32d9fc345c55a4eb14101c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124824 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/oox/token')
-rw-r--r--include/oox/token/propertynames.hxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/include/oox/token/propertynames.hxx b/include/oox/token/propertynames.hxx
index 84077359e1fe..91e07cbdd33b 100644
--- a/include/oox/token/propertynames.hxx
+++ b/include/oox/token/propertynames.hxx
@@ -16,30 +16,18 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
-#ifndef INCLUDED_OOX_TOKEN_PROPERTYNAMES_HXX
-#define INCLUDED_OOX_TOKEN_PROPERTYNAMES_HXX
+#pragma once
#include <vector>
-#include <rtl/instance.hxx>
#include <rtl/ustring.hxx>
namespace oox
{
/** A vector that contains all predefined property names used in the filters. */
-struct PropertyNameVector : public ::std::vector<OUString>
-{
- PropertyNameVector();
-};
-
-/** Thread-save singleton of a vector of all supported property names. */
-struct StaticPropertyNameVector : public ::rtl::Static<PropertyNameVector, StaticPropertyNameVector>
-{
-};
+/** Thread-safe singleton of a vector of all supported property names. */
+const std::vector<OUString>& GetPropertyNameVector();
} // namespace oox
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */