summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-08 19:54:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-09 13:01:49 +0100
commitac396f2f6b058ddff8c394443669b8c5d8b97b71 (patch)
treefc5120838a69ced58c3cd2333718ffeb6d4adf67 /unotools
parent0c20b68149797c8b0779534a8e0cb9045085d451 (diff)
fix coverity parse errors
Change-Id: I3a1179947704452e3ffec02be59d0f7bf0b75ab0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109017 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/historyoptions.cxx14
-rw-r--r--unotools/source/config/lingucfg.cxx2
-rw-r--r--unotools/source/config/saveopt.cxx2
3 files changed, 9 insertions, 9 deletions
diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx
index 91c8861b2f52..2d95036d54c8 100644
--- a/unotools/source/config/historyoptions.cxx
+++ b/unotools/source/config/historyoptions.cxx
@@ -50,13 +50,13 @@ namespace {
const ::sal_Int32 s_nOffsetPassword = 3;
const ::sal_Int32 s_nOffsetThumbnail = 4;
- const OUStringLiteral s_sItemList = u"ItemList";
- const OUStringLiteral s_sOrderList = u"OrderList";
- const OUStringLiteral s_sHistoryItemRef = u"HistoryItemRef";
- const OUStringLiteral s_sFilter = u"Filter";
- const OUStringLiteral s_sTitle = u"Title";
- const OUStringLiteral s_sPassword = u"Password";
- const OUStringLiteral s_sThumbnail = u"Thumbnail";
+ constexpr OUStringLiteral s_sItemList = u"ItemList";
+ constexpr OUStringLiteral s_sOrderList = u"OrderList";
+ constexpr OUStringLiteral s_sHistoryItemRef = u"HistoryItemRef";
+ constexpr OUStringLiteral s_sFilter = u"Filter";
+ constexpr OUStringLiteral s_sTitle = u"Title";
+ constexpr OUStringLiteral s_sPassword = u"Password";
+ constexpr OUStringLiteral s_sThumbnail = u"Thumbnail";
class theHistoryOptionsMutex : public rtl::Static<osl::Mutex, theHistoryOptionsMutex>{};
}
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx
index c0a8438792fd..dbfb4c208e6e 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -803,7 +803,7 @@ bool SvtLinguConfigItem::IsReadOnly( sal_Int32 nPropertyHandle ) const
static SvtLinguConfigItem *pCfgItem = nullptr;
static sal_Int32 nCfgItemRefCount = 0;
-const OUStringLiteral aG_Dictionaries = u"Dictionaries";
+constexpr OUStringLiteral aG_Dictionaries = u"Dictionaries";
SvtLinguConfig::SvtLinguConfig()
{
diff --git a/unotools/source/config/saveopt.cxx b/unotools/source/config/saveopt.cxx
index e8bb2aade654..1fad334ddbca 100644
--- a/unotools/source/config/saveopt.cxx
+++ b/unotools/source/config/saveopt.cxx
@@ -714,7 +714,7 @@ public:
}
-const OUStringLiteral cUserDefinedSettings = u"UserDefinedSettings";
+constexpr OUStringLiteral cUserDefinedSettings = u"UserDefinedSettings";
SvtLoadOptions_Impl::SvtLoadOptions_Impl()
: ConfigItem( "Office.Common/Load" )