diff options
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/inc/svgtools.hxx | 8 | ||||
-rw-r--r-- | svgio/source/svgreader/svgtools.cxx | 6 |
2 files changed, 4 insertions, 10 deletions
diff --git a/svgio/inc/svgtools.hxx b/svgio/inc/svgtools.hxx index d5df009f8ab6..a78c3210cd7f 100644 --- a/svgio/inc/svgtools.hxx +++ b/svgio/inc/svgtools.hxx @@ -36,10 +36,10 @@ namespace svgio::svgreader // common non-token strings struct commonStrings { - static const OUStringLiteral aStrUserSpaceOnUse; - static const OUStringLiteral aStrObjectBoundingBox; - static const OUStringLiteral aStrNonzero; - static const OUStringLiteral aStrEvenOdd; + static constexpr OUStringLiteral aStrUserSpaceOnUse = u"userSpaceOnUse"; + static constexpr OUStringLiteral aStrObjectBoundingBox = u"objectBoundingBox"; + static constexpr OUStringLiteral aStrNonzero = u"nonzero"; + static constexpr OUStringLiteral aStrEvenOdd = u"evenodd"; }; enum SvgUnits diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx index 4be1514f69a4..867c3b1b0bea 100644 --- a/svgio/source/svgreader/svgtools.cxx +++ b/svgio/source/svgreader/svgtools.cxx @@ -29,12 +29,6 @@ namespace svgio::svgreader { - // common non-token strings - const OUStringLiteral commonStrings::aStrUserSpaceOnUse(u"userSpaceOnUse"); - const OUStringLiteral commonStrings::aStrObjectBoundingBox(u"objectBoundingBox"); - const OUStringLiteral commonStrings::aStrNonzero(u"nonzero"); - const OUStringLiteral commonStrings::aStrEvenOdd(u"evenodd"); - basegfx::B2DHomMatrix SvgAspectRatio::createLinearMapping(const basegfx::B2DRange& rTarget, const basegfx::B2DRange& rSource) { basegfx::B2DHomMatrix aRetval; |