summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:56:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:59:58 +0200
commit74f6acf030a6289eb5a9635e1e9e1afd59aa4b90 (patch)
treee260d7d4e9872e0f4745de145626d4b1b4c5cae2 /cui/source/dialogs
parenta324b1ca1ae6185ea39db6daf68c7210b541ae96 (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): cui
Change-Id: If2a86e570cd8225acb27e9c37377078b7a246449 Reviewed-on: https://gerrit.libreoffice.org/76687 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r--cui/source/dialogs/colorpicker.cxx2
-rw-r--r--cui/source/dialogs/hlinettp.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index 6b7142f2a85b..e96037e747df 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1209,7 +1209,7 @@ private:
OUString ColorPicker_getImplementationName()
{
- return OUString( "com.sun.star.cui.ColorPicker" );
+ return "com.sun.star.cui.ColorPicker";
}
Reference< XInterface > ColorPicker_createInstance( Reference< XComponentContext > const & )
diff --git a/cui/source/dialogs/hlinettp.cxx b/cui/source/dialogs/hlinettp.cxx
index a2bae6bd1ce2..4867a43bbe00 100644
--- a/cui/source/dialogs/hlinettp.cxx
+++ b/cui/source/dialogs/hlinettp.cxx
@@ -287,8 +287,8 @@ void SvxHyperlinkInternetTp::RemoveImproperProtocol(const OUString& aProperSchem
OUString SvxHyperlinkInternetTp::GetSchemeFromButtons() const
{
if( m_xRbtLinktypFTP->get_active() )
- return OUString(INET_FTP_SCHEME);
- return OUString(INET_HTTP_SCHEME);
+ return INET_FTP_SCHEME;
+ return INET_HTTP_SCHEME;
}
INetProtocol SvxHyperlinkInternetTp::GetSmartProtocolFromButtons() const