From de74d98c58db604aafc0ee623c252f3aa25ac4b7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 20 Sep 2020 12:53:27 +0100 Subject: OUStringLiteral/OStringLiteral coverity PARSE_ERROR workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit do more like commit 121771e37f7e2de41cd5643475861062bf25627b Date: Mon Sep 21 09:17:54 2020 +0200 Make some OUStringLiteral vars constexpr cause coverity can live with that Change-Id: I9efd7f848289c4865997a44c6780373068422227 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103147 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- test/source/sheet/xsheetoutline.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/source/sheet/xsheetoutline.cxx') diff --git a/test/source/sheet/xsheetoutline.cxx b/test/source/sheet/xsheetoutline.cxx index c07fd866b05d..9e6844c3234c 100644 --- a/test/source/sheet/xsheetoutline.cxx +++ b/test/source/sheet/xsheetoutline.cxx @@ -28,13 +28,13 @@ using namespace css::uno; namespace apitest { -const OUStringLiteral colLevel1 = u"OutlineSheet.A1:Z1"; -const OUStringLiteral colLevel2 = u"OutlineSheet.C1:W1"; -const OUStringLiteral colLevel3 = u"OutlineSheet.E1:U1"; -const OUStringLiteral colLevel4 = u"OutlineSheet.G1:S1"; +constexpr OUStringLiteral colLevel1 = u"OutlineSheet.A1:Z1"; +constexpr OUStringLiteral colLevel2 = u"OutlineSheet.C1:W1"; +constexpr OUStringLiteral colLevel3 = u"OutlineSheet.E1:U1"; +constexpr OUStringLiteral colLevel4 = u"OutlineSheet.G1:S1"; -const OUStringLiteral rowLevel1 = u"OutlineSheet.A1:A30"; -const OUStringLiteral rowLevel2 = u"OutlineSheet.A3:A27"; +constexpr OUStringLiteral rowLevel1 = u"OutlineSheet.A1:A30"; +constexpr OUStringLiteral rowLevel2 = u"OutlineSheet.A3:A27"; static OUString getVisibleAdress( uno::Reference const& xSheet, -- cgit v1.2.3