diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:48:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:55:02 +0200 |
commit | f0531aee9535118addf73771c2b3d8a02f1894bf (patch) | |
tree | 8b8c372379498ba4c1f68052a37f7be5c2c911bb /sfx2/source/doc | |
parent | 90294b464d0e5acf21cb152babb11d7f96ecf5d7 (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): sfx2
Change-Id: Idb86a5351feaf307504d1f1f110ef8b1275bedce
Reviewed-on: https://gerrit.libreoffice.org/76648
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/iframe.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/ownsubfilterservice.cxx | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index a9d248a2738c..ad5417688fdc 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -326,7 +326,7 @@ public: // XServiceInfo virtual OUString SAL_CALL getImplementationName( ) override { - return OUString("CompatWriterDocPropsImpl"); + return "CompatWriterDocPropsImpl"; } virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override @@ -1264,7 +1264,7 @@ SfxDocumentMetaData::SfxDocumentMetaData( OUString SAL_CALL SfxDocumentMetaData::getImplementationName() { - return OUString("SfxDocumentMetaData"); + return "SfxDocumentMetaData"; } sal_Bool SAL_CALL diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 7c980be3b77f..6780825e7dcd 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -2130,7 +2130,7 @@ public: virtual OUString SAL_CALL getImplementationName() override { - return OUString("com.sun.star.comp.sfx2.DocumentTemplates"); + return "com.sun.star.comp.sfx2.DocumentTemplates"; } virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx index e9bc3f0aabe9..2bbdd75ae027 100644 --- a/sfx2/source/doc/iframe.cxx +++ b/sfx2/source/doc/iframe.cxx @@ -70,7 +70,7 @@ public: virtual OUString SAL_CALL getImplementationName() override { - return OUString("com.sun.star.comp.sfx2.IFrameObject"); + return "com.sun.star.comp.sfx2.IFrameObject"; } virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index d4b30edfa5b2..4a1fb448b7b1 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -709,7 +709,7 @@ OUString SfxObjectShell::GetTitle( sal_uInt16 nMaxLength ) const { static bool bRecur = false; if ( bRecur ) - return OUString("-not available-"); + return "-not available-"; bRecur = true; OUString aTitle; diff --git a/sfx2/source/doc/ownsubfilterservice.cxx b/sfx2/source/doc/ownsubfilterservice.cxx index ee002aacfd93..abe4b5c63c44 100644 --- a/sfx2/source/doc/ownsubfilterservice.cxx +++ b/sfx2/source/doc/ownsubfilterservice.cxx @@ -96,7 +96,7 @@ void SAL_CALL OwnSubFilterService::cancel() OUString SAL_CALL OwnSubFilterService::getImplementationName() { - return OUString("com.sun.star.comp.document.OwnSubFilter"); + return "com.sun.star.comp.document.OwnSubFilter"; } sal_Bool SAL_CALL OwnSubFilterService::supportsService( const OUString& ServiceName ) |