From 3457da6abe0fd03efd19442e9790fbd1aa04c160 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Aug 2020 10:55:58 +0200 Subject: loplugin:stringstatic also look for local statics Add some API to O*StringLiteral, to make it easier to use in some places that were using O*String Change-Id: I1fb93bd47ac2065c9220d509aad3f4320326d99e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100270 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svgio/inc/svgtools.hxx | 8 ++++---- svgio/source/svgreader/svgtools.cxx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'svgio') diff --git a/svgio/inc/svgtools.hxx b/svgio/inc/svgtools.hxx index 2fdef95bd81e..d5df009f8ab6 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 OUString aStrUserSpaceOnUse; - static const OUString aStrObjectBoundingBox; - static const OUString aStrNonzero; - static const OUString aStrEvenOdd; + static const OUStringLiteral aStrUserSpaceOnUse; + static const OUStringLiteral aStrObjectBoundingBox; + static const OUStringLiteral aStrNonzero; + static const OUStringLiteral aStrEvenOdd; }; enum SvgUnits diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx index 0c628511ddbd..8c66e3db8974 100644 --- a/svgio/source/svgreader/svgtools.cxx +++ b/svgio/source/svgreader/svgtools.cxx @@ -30,10 +30,10 @@ namespace svgio::svgreader { // common non-token strings - const OUString commonStrings::aStrUserSpaceOnUse("userSpaceOnUse"); - const OUString commonStrings::aStrObjectBoundingBox("objectBoundingBox"); - const OUString commonStrings::aStrNonzero("nonzero"); - const OUString commonStrings::aStrEvenOdd("evenodd"); + const OUStringLiteral commonStrings::aStrUserSpaceOnUse("userSpaceOnUse"); + const OUStringLiteral commonStrings::aStrObjectBoundingBox("objectBoundingBox"); + const OUStringLiteral commonStrings::aStrNonzero("nonzero"); + const OUStringLiteral commonStrings::aStrEvenOdd("evenodd"); basegfx::B2DHomMatrix SvgAspectRatio::createLinearMapping(const basegfx::B2DRange& rTarget, const basegfx::B2DRange& rSource) { -- cgit