diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-05 13:21:42 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-05 13:38:33 +0100 |
commit | 3032fc36eaca2840a9e42207b5e8e88e248a439d (patch) | |
tree | 3c787f80253bc2e4e8fc844f82ff366e4405da43 | |
parent | 8bd46187e355f2da76812d38d0fa36cc255a841b (diff) |
Simplify oox::PropertyNameVector ctor
Change-Id: I800da7546a88e173e1b68041ce967795a4a3c9d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124699
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | oox/source/token/propertynames.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/oox/source/token/propertynames.cxx b/oox/source/token/propertynames.cxx index dc0d9ed42b53..b7c5e544143c 100644 --- a/oox/source/token/propertynames.cxx +++ b/oox/source/token/propertynames.cxx @@ -22,17 +22,11 @@ namespace oox { PropertyNameVector::PropertyNameVector() -{ - static const char* sppcPropertyNames[] = { - // include auto-generated C array with property names as C strings + : ::std::vector<OUString>{ +// include auto-generated C array with property names as C strings #include <propertynames.inc> - "" - }; - - size_t nArraySize = SAL_N_ELEMENTS(sppcPropertyNames) - 1; - reserve(nArraySize); - for (size_t nIndex = 0; nIndex < nArraySize; ++nIndex) - push_back(OUString::createFromAscii(sppcPropertyNames[nIndex])); + } +{ } } // namespace oox |