summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:53:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:57:11 +0200
commit8a5ab4cee4f75b4a4c6514123e71e4c5469913ff (patch)
tree5411c2b17ecfe093249b61bd0e075b880e1285ec /lingucomponent
parentedfa05d8a69b8a83a92481c425cbf361c23555bb (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): lingucomponent
Change-Id: I0879890eb3c39c4c5f52cf7209da797f617df9c6 Reviewed-on: https://gerrit.libreoffice.org/76665 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx2
-rw-r--r--lingucomponent/source/languageguessing/guesslang.cxx4
-rw-r--r--lingucomponent/source/numbertext/numbertext.cxx4
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.hxx2
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.hxx2
5 files changed, 7 insertions, 7 deletions
diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx
index 46cf4f4f84c6..d5103b8e7aa5 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx
@@ -125,7 +125,7 @@ private:
inline OUString Hyphenator::getImplementationName_Static() throw()
{
- return OUString( "org.openoffice.lingu.LibHnjHyphenator" );
+ return "org.openoffice.lingu.LibHnjHyphenator";
}
#endif
diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx
index db8d67eaa6c1..5295a4e2902c 100644
--- a/lingucomponent/source/languageguessing/guesslang.cxx
+++ b/lingucomponent/source/languageguessing/guesslang.cxx
@@ -63,7 +63,7 @@ static Sequence< OUString > getSupportedServiceNames_LangGuess_Impl()
static OUString getImplementationName_LangGuess_Impl()
{
- return OUString( IMPLNAME );
+ return IMPLNAME;
}
static osl::Mutex & GetLangGuessMutex()
@@ -313,7 +313,7 @@ void SAL_CALL LangGuess_Impl::enableLanguages(
OUString SAL_CALL LangGuess_Impl::getImplementationName( )
{
- return OUString( IMPLNAME );
+ return IMPLNAME;
}
sal_Bool SAL_CALL LangGuess_Impl::supportsService( const OUString& ServiceName )
diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx
index 58896ea41bf2..fea2cb50e2c7 100644
--- a/lingucomponent/source/numbertext/numbertext.cxx
+++ b/lingucomponent/source/numbertext/numbertext.cxx
@@ -58,7 +58,7 @@ static Sequence<OUString> getSupportedServiceNames_NumberText_Impl()
return names;
}
-static OUString getImplementationName_NumberText_Impl() { return OUString(IMPLNAME); }
+static OUString getImplementationName_NumberText_Impl() { return IMPLNAME; }
static osl::Mutex& GetNumberTextMutex()
{
@@ -158,7 +158,7 @@ uno::Sequence<Locale> SAL_CALL NumberText_Impl::getAvailableLanguages()
return aRes;
}
-OUString SAL_CALL NumberText_Impl::getImplementationName() { return OUString(IMPLNAME); }
+OUString SAL_CALL NumberText_Impl::getImplementationName() { return IMPLNAME; }
sal_Bool SAL_CALL NumberText_Impl::supportsService(const OUString& ServiceName)
{
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.hxx b/lingucomponent/source/spellcheck/spell/sspellimp.hxx
index a500f1527897..3c55d3c9fcf7 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.hxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.hxx
@@ -122,7 +122,7 @@ public:
inline OUString SpellChecker::getImplementationName_Static() throw()
{
- return OUString( "org.openoffice.lingu.MySpellSpellChecker" );
+ return "org.openoffice.lingu.MySpellSpellChecker";
}
#endif
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx
index 394aefada281..4fba8f5c226e 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx
@@ -132,7 +132,7 @@ private:
inline OUString Thesaurus::getImplementationName_Static() throw()
{
- return OUString( "org.openoffice.lingu.new.Thesaurus" );
+ return "org.openoffice.lingu.new.Thesaurus";
}
#endif