summaryrefslogtreecommitdiff
path: root/unotools/qa/unit/testGetEnglishSearchName.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/qa/unit/testGetEnglishSearchName.cxx')
-rw-r--r--unotools/qa/unit/testGetEnglishSearchName.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/unotools/qa/unit/testGetEnglishSearchName.cxx b/unotools/qa/unit/testGetEnglishSearchName.cxx
index 18bec28f7521..84feb67b97ae 100644
--- a/unotools/qa/unit/testGetEnglishSearchName.cxx
+++ b/unotools/qa/unit/testGetEnglishSearchName.cxx
@@ -45,23 +45,23 @@ void Test::testSingleElement()
//for Japanese fontname
// IPAMincho
- static OUStringLiteral const aIPAMincho=u"ipa\u660e\u671d";
+ static constexpr OUStringLiteral aIPAMincho=u"ipa\u660e\u671d";
OUString test_ja_JP1 = GetEnglishSearchFontName(aIPAMincho);
CPPUNIT_ASSERT_EQUAL( OUString("ipamincho"),test_ja_JP1);
// IPAGothic
- static OUStringLiteral const aIPAGothic=u"ipa\u30b4\u30b7\u30c3\u30af";
+ static constexpr OUStringLiteral aIPAGothic=u"ipa\u30b4\u30b7\u30c3\u30af";
OUString test_ja_JP2 = GetEnglishSearchFontName(aIPAGothic);
CPPUNIT_ASSERT_EQUAL( OUString("ipagothic"),test_ja_JP2);
// HiraginoKakuGothic
- static OUStringLiteral const aHiraginoKakuGothic=u"\u30D2\u30E9\u30AE\u30CE\u89D2\u30B4\u30B7\u30C3\u30AF";
+ static constexpr OUStringLiteral aHiraginoKakuGothic=u"\u30D2\u30E9\u30AE\u30CE\u89D2\u30B4\u30B7\u30C3\u30AF";
OUString test_ja_JP3 = GetEnglishSearchFontName(aHiraginoKakuGothic);
CPPUNIT_ASSERT_EQUAL( OUString("hiraginosans"),test_ja_JP3);
// HiraginoMincho Pro N
- static OUStringLiteral const aHiraginoMinchoProN=u"\u30D2\u30E9\u30AE\u30CE\u660E\u671Dpron";
+ static constexpr OUStringLiteral aHiraginoMinchoProN=u"\u30D2\u30E9\u30AE\u30CE\u660E\u671Dpron";
OUString test_ja_JP4 = GetEnglishSearchFontName(aHiraginoMinchoProN);
CPPUNIT_ASSERT_EQUAL( OUString("hiraginominchopron"),test_ja_JP4);
// HiraginoMaruGothic Pro N
- static OUStringLiteral const aHiraginoMaruGothicProN
+ static constexpr OUStringLiteral aHiraginoMaruGothicProN
=u"\u30D2\u30E9\u30AE\u30CE\u4E38\u30B4pron";
OUString test_ja_JP5 = GetEnglishSearchFontName(aHiraginoMaruGothicProN);
CPPUNIT_ASSERT_EQUAL( OUString("hiraginomarugothicpron"),test_ja_JP5);