diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:58:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 13:00:51 +0200 |
commit | d204b7f78769cfcde19d587b6022b3613f39e640 (patch) | |
tree | 6bd339d328900422a1b018dda72907e7dc3bd6af /basic | |
parent | 254b92005479a6d57dfdc63602a214d8d95df68a (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): basic
Change-Id: I174b057e29e5c0d56534fb1d2b6240880c7ddf2b
Reviewed-on: https://gerrit.libreoffice.org/76695
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/errobject.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxform.cxx | 2 | ||||
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 2 | ||||
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/classes/errobject.cxx b/basic/source/classes/errobject.cxx index 24f460ca675f..ecd6817790f8 100644 --- a/basic/source/classes/errobject.cxx +++ b/basic/source/classes/errobject.cxx @@ -151,7 +151,7 @@ ErrObject::Raise( const uno::Any& Number, const uno::Any& Source, const uno::Any OUString SAL_CALL ErrObject::getDefaultPropertyName( ) { - return OUString( "Number" ); + return "Number"; } void ErrObject::setData( const uno::Any& Number, const uno::Any& Source, const uno::Any& Description, const uno::Any& HelpFile, const uno::Any& HelpContext ) diff --git a/basic/source/sbx/sbxform.cxx b/basic/source/sbx/sbxform.cxx index 2294be9f295b..21ffa197a70e 100644 --- a/basic/source/sbx/sbxform.cxx +++ b/basic/source/sbx/sbxform.cxx @@ -849,7 +849,7 @@ OUString SbxBasicFormater::BasicFormatNull( const OUString& sFormatStrg ) { return sNullFormatStrg; } - return OUString("null"); + return "null"; } OUString SbxBasicFormater::BasicFormat( double dNumber, const OUString& _sFormatStrg ) diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index 2d4c1f6e532c..b9cbbcd42b9a 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -454,7 +454,7 @@ SfxDialogLibraryContainer:: HasExecutableCode( const OUString& /*Library*/ ) OUString SAL_CALL SfxDialogLibraryContainer::getImplementationName( ) { - return OUString("com.sun.star.comp.sfx2.DialogLibraryContainer"); + return "com.sun.star.comp.sfx2.DialogLibraryContainer"; } Sequence< OUString > SAL_CALL SfxDialogLibraryContainer::getSupportedServiceNames( ) diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx index d04ed65746eb..e57909ea82f1 100644 --- a/basic/source/uno/scriptcont.cxx +++ b/basic/source/uno/scriptcont.cxx @@ -1112,7 +1112,7 @@ sal_Bool SAL_CALL SfxScriptLibraryContainer:: HasExecutableCode( const OUString& // Service OUString SAL_CALL SfxScriptLibraryContainer::getImplementationName( ) { - return OUString("com.sun.star.comp.sfx2.ScriptLibraryContainer" ); + return "com.sun.star.comp.sfx2.ScriptLibraryContainer"; } Sequence< OUString > SAL_CALL SfxScriptLibraryContainer::getSupportedServiceNames( ) |