summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-25 19:08:49 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-26 00:59:18 +0000
commit0ba8da916429ca768989cb1046df9b28ff52ec37 (patch)
treed9703e01b19ba541d299f8e315b585b9aa014689 /oox
parent66eb739e9a59ed2b96d808115c568172b8488144 (diff)
use uniform initializer syntax to simplify code
Change-Id: I617c63c16cc2ba06f88d7101716ab05daf4b30a4 Reviewed-on: https://gerrit.libreoffice.org/32423 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/token/namespacemap.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/oox/source/token/namespacemap.cxx b/oox/source/token/namespacemap.cxx
index f320b993e310..7fd99a5dfb43 100644
--- a/oox/source/token/namespacemap.cxx
+++ b/oox/source/token/namespacemap.cxx
@@ -23,25 +23,13 @@ namespace oox {
NamespaceMap::NamespaceMap()
{
- static const struct NamespaceUrl { sal_Int32 mnId; const sal_Char* mpcUrl; } spNamespaceUrls[] =
- {
-// include auto-generated C array with namespace URLs as C strings
+ maTransitionalNamespaceMap = std::map<sal_Int32, OUString>{
#include "namespacenames.inc"
- { -1, "" }
};
- static const struct NamespaceStrictUrl { sal_Int32 mnId; const sal_Char* mpcUrl; } spNamespaceStrictUrls[] =
- {
-// include auto-generated C array with namespace URLs as C strings
+ maStrictNamespaceMap = std::map<sal_Int32, OUString>{
#include "namespaces-strictnames.inc"
- { -1, "" }
};
-
- for( const NamespaceUrl* pNamespaceUrl = spNamespaceUrls; pNamespaceUrl->mnId != -1; ++pNamespaceUrl )
- maTransitionalNamespaceMap[ pNamespaceUrl->mnId ] = OUString::createFromAscii( pNamespaceUrl->mpcUrl );
-
- for( const NamespaceStrictUrl* pNamespaceUrl = spNamespaceStrictUrls; pNamespaceUrl->mnId != -1; ++pNamespaceUrl )
- maStrictNamespaceMap[ pNamespaceUrl->mnId ] = OUString::createFromAscii( pNamespaceUrl->mpcUrl );
}
}