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>
This commit is contained in:
parent
44bd87fd78
commit
dd6f6147d4
4 changed files with 8 additions and 8 deletions
|
@ -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 )
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue