diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-10 16:41:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-10 21:01:05 +0100 |
commit | 117ecc9870f57c3c211b4bfd35728503e1875743 (patch) | |
tree | 2d23e9fb370fb7943099b0aa1fcb6b0d41ebdedc /sal | |
parent | f2254f11e5e381b959dcaab53a7ddb101a83b561 (diff) |
fix coverity parse errors
Change-Id: I4884bfb67a061b865e8cf38b2fea6de0cb1bc3d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109057
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/uri/rtl_testuri.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sal/qa/rtl/uri/rtl_testuri.cxx b/sal/qa/rtl/uri/rtl_testuri.cxx index 3cc366a9336d..fc45ba238f2c 100644 --- a/sal/qa/rtl/uri/rtl_testuri.cxx +++ b/sal/qa/rtl/uri/rtl_testuri.cxx @@ -358,7 +358,7 @@ void Test::test_Uri() { // Check encode with unusual text encodings: { - static OUStringLiteral const aText1U = u" !\u0401\u045F"; + static constexpr OUStringLiteral aText1U = u" !\u0401\u045F"; aText1 = OUString(aText1U); aText2 = "%20!%A1%FF"; CPPUNIT_ASSERT_EQUAL_MESSAGE( @@ -374,9 +374,9 @@ void Test::test_Uri() { aText2, rtl_UriDecodeWithCharset, RTL_TEXTENCODING_ISO_8859_5)); } { - static OUStringLiteral const aText1U = u" !\u0401\u0700\u045F"; + static constexpr OUStringLiteral aText1U = u" !\u0401\u0700\u045F"; aText1 = OUString(aText1U); - static OUStringLiteral const aText2U = + static constexpr OUStringLiteral aText2U = u"%20!%A1\u0700%FF"; aText2 = OUString(aText2U); CPPUNIT_ASSERT_EQUAL_MESSAGE( @@ -393,7 +393,7 @@ void Test::test_Uri() { } #if WITH_LOCALE_ALL || WITH_LOCALE_zh { - static OUStringLiteral const aText1U = u" !\u028A\U00022513"; + static constexpr OUStringLiteral aText1U = u" !\u028A\U00022513"; aText1 = OUString(aText1U); aText2 = "%20!%81%30%B1%33%95%39%C5%37"; CPPUNIT_ASSERT_EQUAL_MESSAGE( @@ -412,7 +412,7 @@ void Test::test_Uri() { // Check strict mode: { - static OUStringLiteral const aText1U = u" !\u0401\u0700\u045F"; + static constexpr OUStringLiteral aText1U = u" !\u0401\u0700\u045F"; aText1 = OUString(aText1U); aText2 = OUString(); CPPUNIT_ASSERT_EQUAL_MESSAGE( @@ -452,7 +452,7 @@ void Test::test_Uri() { } { aText1 = "%81%30%B1%33"; - static OUStringLiteral const aText2U = u"\u028A"; + static constexpr OUStringLiteral aText2U = u"\u028A"; aText2 = OUString(aText2U); CPPUNIT_ASSERT_EQUAL_MESSAGE( "failure 27", @@ -462,7 +462,7 @@ void Test::test_Uri() { } { aText1 = "%810%B13"; - static OUStringLiteral const aText2U = u"\u028A"; + static constexpr OUStringLiteral aText2U = u"\u028A"; aText2 = OUString(aText2U); CPPUNIT_ASSERT_EQUAL_MESSAGE( "failure 28", @@ -484,7 +484,7 @@ void Test::test_Uri() { RTL_TEXTENCODING_UTF8)); } { - static OUStringLiteral const aText1U = u"\u00EA"; + static constexpr OUStringLiteral aText1U = u"\u00EA"; aText1 = OUString(aText1U); aText2 = "%C3%AA"; CPPUNIT_ASSERT_EQUAL_MESSAGE( @@ -495,7 +495,7 @@ void Test::test_Uri() { RTL_TEXTENCODING_UTF8)); } { - static OUStringLiteral const aText1U = u" !\u0401\u0700\u045F"; + static constexpr OUStringLiteral aText1U = u" !\u0401\u0700\u045F"; aText1 = OUString(aText1U); aText2 = OUString(); CPPUNIT_ASSERT_EQUAL_MESSAGE( |