[Libreoffice-commits] core.git: 4 commits - jvmfwk/inc l10ntools/source lingucomponent/source linguistic/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jul 31 10:58:01 UTC 2019
jvmfwk/inc/libxmlutil.hxx | 2 +-
l10ntools/source/po.cxx | 4 ++--
lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx | 2 +-
lingucomponent/source/languageguessing/guesslang.cxx | 4 ++--
lingucomponent/source/numbertext/numbertext.cxx | 4 ++--
lingucomponent/source/spellcheck/spell/sspellimp.hxx | 2 +-
lingucomponent/source/thesaurus/libnth/nthesimp.hxx | 2 +-
linguistic/source/convdic.cxx | 2 +-
linguistic/source/convdiclist.hxx | 2 +-
linguistic/source/dlistimp.hxx | 2 +-
linguistic/source/gciterator.cxx | 2 +-
linguistic/source/hhconvdic.cxx | 2 +-
linguistic/source/lngopt.hxx | 2 +-
linguistic/source/lngsvcmgr.hxx | 2 +-
14 files changed, 17 insertions(+), 17 deletions(-)
New commits:
commit fdc49438d5b039506e853098d4bb3bc2fed5c271
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jul 30 17:53:41 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jul 31 12:57:29 2019 +0200
Improved loplugin:stringconstant (now that GCC 7 supports it): jvmfwk
Change-Id: I2bf2c6b5a896cc58195a5b8f85274b9d17c56ac8
Reviewed-on: https://gerrit.libreoffice.org/76667
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/jvmfwk/inc/libxmlutil.hxx b/jvmfwk/inc/libxmlutil.hxx
index 1730a59e99a9..8e6f9afaadbd 100644
--- a/jvmfwk/inc/libxmlutil.hxx
+++ b/jvmfwk/inc/libxmlutil.hxx
@@ -89,7 +89,7 @@ public:
CXmlCharPtr & operator = (xmlChar* pObj);
operator xmlChar* () const { return _object;}
operator OUString ();
- operator OString () { return OString(reinterpret_cast<sal_Char*>(_object));}
+ operator OString () { return reinterpret_cast<sal_Char*>(_object);}
};
commit bc84173db412a3b78df67897e58324c17a36c361
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jul 30 17:53:34 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jul 31 12:57:20 2019 +0200
Improved loplugin:stringconstant (now that GCC 7 supports it): l10ntools
Change-Id: I98476e17e0ab6009d822205c7b31935173da2722
Reviewed-on: https://gerrit.libreoffice.org/76666
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index c317f5ba170c..921d752ce6c7 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -427,7 +427,7 @@ OString PoEntry::genKeyId(const OString& rGenerator)
nCRC >>= 6;
}
sKeyId[5] = '\0';
- return OString(sKeyId);
+ return sKeyId;
}
namespace
@@ -439,7 +439,7 @@ namespace
struct tm* pNow = localtime(&aNow);
char pBuff[50];
strftime( pBuff, sizeof pBuff, "%Y-%m-%d %H:%M%z", pNow );
- return OString(pBuff);
+ return pBuff;
}
}
commit 8a5ab4cee4f75b4a4c6514123e71e4c5469913ff
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jul 30 17:53:25 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jul 31 12:57:11 2019 +0200
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 at redhat.com>
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
commit edfa05d8a69b8a83a92481c425cbf361c23555bb
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jul 30 17:53:18 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jul 31 12:57:03 2019 +0200
Improved loplugin:stringconstant (now that GCC 7 supports it): linguistic
Change-Id: I46da5784c74829873f92a341c388b142d29547b4
Reviewed-on: https://gerrit.libreoffice.org/76664
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index 482ae2f2c880..31de419bfbcd 100644
--- a/linguistic/source/convdic.cxx
+++ b/linguistic/source/convdic.cxx
@@ -613,7 +613,7 @@ void SAL_CALL ConvDic::removeFlushListener(
OUString SAL_CALL ConvDic::getImplementationName( )
{
- return OUString( "com.sun.star.lingu2.ConvDic" );
+ return "com.sun.star.lingu2.ConvDic";
}
sal_Bool SAL_CALL ConvDic::supportsService( const OUString& rServiceName )
diff --git a/linguistic/source/convdiclist.hxx b/linguistic/source/convdiclist.hxx
index 0e6ef9c2ca8e..971be9eae8af 100644
--- a/linguistic/source/convdiclist.hxx
+++ b/linguistic/source/convdiclist.hxx
@@ -94,7 +94,7 @@ public:
inline OUString ConvDicList::getImplementationName_Static() throw()
{
- return OUString( "com.sun.star.lingu2.ConvDicList" );
+ return "com.sun.star.lingu2.ConvDicList";
}
diff --git a/linguistic/source/dlistimp.hxx b/linguistic/source/dlistimp.hxx
index d71a700f667c..73de31b7db8c 100644
--- a/linguistic/source/dlistimp.hxx
+++ b/linguistic/source/dlistimp.hxx
@@ -122,7 +122,7 @@ public:
inline OUString DicList::getImplementationName_Static() throw()
{
- return OUString( "com.sun.star.lingu2.DicList" );
+ return "com.sun.star.lingu2.DicList";
}
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 43ee3ca21ffd..5817b745da78 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -1184,7 +1184,7 @@ uno::Sequence< OUString > GrammarCheckingIterator::GetServiceList(
static OUString GrammarCheckingIterator_getImplementationName() throw()
{
- return OUString( "com.sun.star.lingu2.ProofreadingIterator" );
+ return "com.sun.star.lingu2.ProofreadingIterator";
}
diff --git a/linguistic/source/hhconvdic.cxx b/linguistic/source/hhconvdic.cxx
index 900a8b7d901f..718a9d281f31 100644
--- a/linguistic/source/hhconvdic.cxx
+++ b/linguistic/source/hhconvdic.cxx
@@ -108,7 +108,7 @@ void SAL_CALL HHConvDic::addEntry(
OUString SAL_CALL HHConvDic::getImplementationName( )
{
- return OUString( "com.sun.star.lingu2.HHConvDic" );
+ return "com.sun.star.lingu2.HHConvDic";
}
diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx
index be90507e69c6..14635c5e3a48 100644
--- a/linguistic/source/lngopt.hxx
+++ b/linguistic/source/lngopt.hxx
@@ -207,7 +207,7 @@ public:
inline OUString LinguProps::getImplementationName_Static() throw()
{
- return OUString( "com.sun.star.lingu2.LinguProps" );
+ return "com.sun.star.lingu2.LinguProps";
}
diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx
index 5bd0ec2e2e5a..eb45e321d6bc 100644
--- a/linguistic/source/lngsvcmgr.hxx
+++ b/linguistic/source/lngsvcmgr.hxx
@@ -170,7 +170,7 @@ public:
inline OUString LngSvcMgr::getImplementationName_Static()
{
- return OUString( "com.sun.star.lingu2.LngSvcMgr" );
+ return "com.sun.star.lingu2.LngSvcMgr";
}
More information about the Libreoffice-commits
mailing list