summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 07:58:58 +0200
commitdd6f6147d431577ce7e1c5596481366a9faa7afb (patch)
tree80df50a24b56860a712461f5b88a844a316b76d7 /linguistic
parent44bd87fd784e64205030067bf91e67ac3cecfa2d (diff)
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: linguistic
Change-Id: I0866cdaffa7059c30a65373efcd37a91b1b6e63e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158205 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdicxml.cxx4
-rw-r--r--linguistic/source/dicimp.cxx2
-rw-r--r--linguistic/source/hhconvdic.cxx2
-rw-r--r--linguistic/source/lngsvcmgr.cxx8
4 files changed, 8 insertions, 8 deletions
diff --git a/linguistic/source/convdicxml.cxx b/linguistic/source/convdicxml.cxx
index c8a09997fd7e..370629925a45 100644
--- a/linguistic/source/convdicxml.cxx
+++ b/linguistic/source/convdicxml.cxx
@@ -43,8 +43,8 @@ using namespace linguistic;
constexpr OUStringLiteral XML_NAMESPACE_TCD_STRING = u"http://openoffice.org/2003/text-conversion-dictionary";
-constexpr OUStringLiteral CONV_TYPE_HANGUL_HANJA = u"Hangul / Hanja";
-constexpr OUStringLiteral CONV_TYPE_SCHINESE_TCHINESE = u"Chinese simplified / Chinese traditional";
+constexpr OUString CONV_TYPE_HANGUL_HANJA = u"Hangul / Hanja"_ustr;
+constexpr OUString CONV_TYPE_SCHINESE_TCHINESE = u"Chinese simplified / Chinese traditional"_ustr;
static OUString ConversionTypeToText( sal_Int16 nConversionType )
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index ec49682b0cf9..b3099b3097e5 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -73,7 +73,7 @@ constexpr OUStringLiteral SPELLML_SUPPORT = u"<?xml?>";
// The following fake file name extension will be
// added to the text of the title: field for correct
// text stripping and dictionary saving.
-constexpr OUStringLiteral EXTENSION_FOR_TITLE_TEXT = u".";
+constexpr OUString EXTENSION_FOR_TITLE_TEXT = u"."_ustr;
const char* const pVerStr2 = "WBSWG2";
const char* const pVerStr5 = "WBSWG5";
diff --git a/linguistic/source/hhconvdic.cxx b/linguistic/source/hhconvdic.cxx
index f2574d630e49..e7712ee66be4 100644
--- a/linguistic/source/hhconvdic.cxx
+++ b/linguistic/source/hhconvdic.cxx
@@ -39,7 +39,7 @@ using namespace linguistic;
using namespace i18n;
-constexpr OUStringLiteral SN_HH_CONV_DICTIONARY = u"com.sun.star.linguistic2.HangulHanjaConversionDictionary";
+constexpr OUString SN_HH_CONV_DICTIONARY = u"com.sun.star.linguistic2.HangulHanjaConversionDictionary"_ustr;
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 017d4b5e8c30..850d4d813bfd 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -710,10 +710,10 @@ void LngSvcMgr::UpdateAll()
void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames )
{
- static constexpr OUStringLiteral aSpellCheckerList( u"ServiceManager/SpellCheckerList" );
- static constexpr OUStringLiteral aGrammarCheckerList( u"ServiceManager/GrammarCheckerList" );
- static constexpr OUStringLiteral aHyphenatorList( u"ServiceManager/HyphenatorList" );
- static constexpr OUStringLiteral aThesaurusList( u"ServiceManager/ThesaurusList" );
+ static constexpr OUString aSpellCheckerList( u"ServiceManager/SpellCheckerList"_ustr );
+ static constexpr OUString aGrammarCheckerList( u"ServiceManager/GrammarCheckerList"_ustr );
+ static constexpr OUString aHyphenatorList( u"ServiceManager/HyphenatorList"_ustr );
+ static constexpr OUString aThesaurusList( u"ServiceManager/ThesaurusList"_ustr );
const uno::Sequence< OUString > aSpellCheckerListEntries( GetNodeNames( aSpellCheckerList ) );
const uno::Sequence< OUString > aGrammarCheckerListEntries( GetNodeNames( aGrammarCheckerList ) );