summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/qa/desktop_lib/test_desktop_lib.cxx4
-rw-r--r--desktop/source/lib/init.cxx22
2 files changed, 13 insertions, 13 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx
index 2aa81b3e3b88..68f6add5139c 100644
--- a/desktop/qa/desktop_lib/test_desktop_lib.cxx
+++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx
@@ -2739,7 +2739,7 @@ void DesktopLOKTest::testComplexSelection()
{
// Start with a blank text file and add contents.
LibLODocument_Impl* pDocument = loadDoc("blank_text.odt");
- static const OStringLiteral aText("hello world");
+ static constexpr OStringLiteral aText("hello world");
// Certainly not complex.
CPPUNIT_ASSERT_EQUAL(static_cast<int>(LOK_SELTYPE_NONE), pDocument->pClass->getSelectionType(pDocument));
@@ -2821,7 +2821,7 @@ void DesktopLOKTest::testCalcSaveAs()
void DesktopLOKTest::testSpellcheckerMultiView()
{
- static const OUStringLiteral aLangISO(u"en-US");
+ static constexpr OUStringLiteral aLangISO(u"en-US");
SvtSysLocaleOptions aSysLocaleOptions;
aSysLocaleOptions.SetLocaleConfigString(aLangISO);
aSysLocaleOptions.SetUILocaleConfigString(aLangISO);
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index ecef209842a8..24b3a1f9c24f 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3713,13 +3713,13 @@ static void doc_sendDialogEvent(LibreOfficeKitDocument* /*pThis*/, unsigned long
if (aMap.find("id") == aMap.end())
return;
- static const OUStringLiteral sClickAction(u"CLICK");
- static const OUStringLiteral sSelectAction(u"SELECT");
- static const OUStringLiteral sClearAction(u"CLEAR");
- static const OUStringLiteral sTypeAction(u"TYPE");
- static const OUStringLiteral sUpAction(u"UP");
- static const OUStringLiteral sDownAction(u"DOWN");
- static const OUStringLiteral sValue(u"VALUE");
+ static constexpr OUStringLiteral sClickAction(u"CLICK");
+ static constexpr OUStringLiteral sSelectAction(u"SELECT");
+ static constexpr OUStringLiteral sClearAction(u"CLEAR");
+ static constexpr OUStringLiteral sTypeAction(u"TYPE");
+ static constexpr OUStringLiteral sUpAction(u"UP");
+ static constexpr OUStringLiteral sDownAction(u"DOWN");
+ static constexpr OUStringLiteral sValue(u"VALUE");
bool bIsWeldedDialog = false;
@@ -4894,10 +4894,10 @@ static char* doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo
SetLastExceptionMsg();
OString aCommand(pCommand);
- static const OStringLiteral aViewRowColumnHeaders(".uno:ViewRowColumnHeaders");
- static const OStringLiteral aSheetGeometryData(".uno:SheetGeometryData");
- static const OStringLiteral aCellCursor(".uno:CellCursor");
- static const OStringLiteral aFontSubset(".uno:FontSubset&name=");
+ static constexpr OStringLiteral aViewRowColumnHeaders(".uno:ViewRowColumnHeaders");
+ static constexpr OStringLiteral aSheetGeometryData(".uno:SheetGeometryData");
+ static constexpr OStringLiteral aCellCursor(".uno:CellCursor");
+ static constexpr OStringLiteral aFontSubset(".uno:FontSubset&name=");
if (!strcmp(pCommand, ".uno:LanguageStatus"))
{