diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-21 12:41:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-04 08:51:00 +0100 |
commit | 5de73f04f3db9c8fb488bf75b1860bf8378a5b45 (patch) | |
tree | 162ce145c1bec1ac5b41b5caa5bac1591c54c11a /i18npool/qa | |
parent | dce64cc7cfd5f696ef0c030524558306687ae3c7 (diff) |
new loplugin:staticconstexpr
Change-Id: Ida1996dfffa106bf95fd064e8191b8033b4002f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175336
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/qa')
-rw-r--r-- | i18npool/qa/cppunit/test_breakiterator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx index 84ae6d5fe72b..e56089ad0c28 100644 --- a/i18npool/qa/cppunit/test_breakiterator.cxx +++ b/i18npool/qa/cppunit/test_breakiterator.cxx @@ -293,7 +293,7 @@ void TestBreakIterator::testLineBreaking() aHyphOptions, aUserOptions); CPPUNIT_ASSERT_EQUAL(sal_Int32{9}, aResult.breakIndex); - constexpr OUString str = u"range of \u2212100.000 to 100.000"_ustr; + static constexpr OUString str = u"range of \u2212100.000 to 100.000"_ustr; aResult = m_xBreak->getLineBreak( str, strlen("range of -"), aLocale, 0, aHyphOptions, aUserOptions); CPPUNIT_ASSERT_EQUAL(sal_Int32{9}, aResult.breakIndex); @@ -311,7 +311,7 @@ void TestBreakIterator::testLineBreaking() // Also the mathematical minus sign: - constexpr OUString str = u"EURO is \u221210,50"_ustr; + static constexpr OUString str = u"EURO is \u221210,50"_ustr; aResult = m_xBreak->getLineBreak( str, strlen("EURO is -"), aLocale, 0, aHyphOptions, aUserOptions); CPPUNIT_ASSERT_EQUAL(sal_Int32{8}, aResult.breakIndex); @@ -327,7 +327,7 @@ void TestBreakIterator::testLineBreaking() // But not the non-breaking hyphen: - constexpr OUString str = u"und \u2011"_ustr; + static constexpr OUString str = u"und \u2011"_ustr; aResult = m_xBreak->getLineBreak( str, strlen("und -ko"), aLocale, 0, aHyphOptions, aUserOptions); CPPUNIT_ASSERT_EQUAL(sal_Int32{5}, aResult.breakIndex); @@ -672,7 +672,7 @@ void TestBreakIterator::testWordBoundaries() //See https://bz.apache.org/ooo/show_bug.cgi?id=13494 { - constexpr OUString aBase(u"xxAAxxBBxxCCxx"_ustr); + static constexpr OUString aBase(u"xxAAxxBBxxCCxx"_ustr); const sal_Unicode aTests[] = { '\'', ';', ',', '.', '!', '@', '#', '%', '&', '*', |