summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-25 12:37:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-25 12:38:39 +0200
commit495b6575f8b9a19f1c72184d56eacb590aeab739 (patch)
tree61555de9be47c99574394eb6c8c7bfa6c10a0d97 /unotools
parent69acf266801246d0099d02de57db332fbe167c72 (diff)
loplugin:stringconstant: Flag more inefficiencies
Change-Id: I45fcbcdf15134585443e528e8af2c9486d0b3bbe
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/bootstrap.cxx4
-rw-r--r--unotools/source/config/dynamicmenuoptions.cxx2
-rw-r--r--unotools/source/config/pathoptions.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx
index 020c846317d2..2fb514da4df4 100644
--- a/unotools/source/config/bootstrap.cxx
+++ b/unotools/source/config/bootstrap.cxx
@@ -199,7 +199,7 @@ bool implNormalizeURL(OUString & _sURL, osl::DirectoryItem& aDirItem)
// #109863# sal/osl returns final slash for file URLs contradicting
// the URL/URI RFCs.
- if ( !aNormalizedURL.endsWith(OUString(cURLSeparator)) )
+ if ( !aNormalizedURL.endsWith(OUStringLiteral1<cURLSeparator>()) )
_sURL = aNormalizedURL;
else
_sURL = aNormalizedURL.copy( 0, aNormalizedURL.getLength()-1 );
@@ -312,7 +312,7 @@ PathStatus getDerivedPath(
// do we have a base path ?
if (!_aBaseURL.isEmpty())
{
- OSL_PRECOND(!_aBaseURL.endsWith(OUString(cURLSeparator)), "Unexpected: base URL ends in slash");
+ OSL_PRECOND(!_aBaseURL.endsWith(OUStringLiteral1<cURLSeparator>()), "Unexpected: base URL ends in slash");
sDerivedURL = OUStringBuffer(_aBaseURL).append(cURLSeparator).append(_sRelativeURL).makeStringAndClear();
diff --git a/unotools/source/config/dynamicmenuoptions.cxx b/unotools/source/config/dynamicmenuoptions.cxx
index cf706c4b42e0..6a8659ebeef6 100644
--- a/unotools/source/config/dynamicmenuoptions.cxx
+++ b/unotools/source/config/dynamicmenuoptions.cxx
@@ -59,7 +59,7 @@ using namespace ::com::sun::star::beans;
#define OFFSET_IMAGEIDENTIFIER 2
#define OFFSET_TARGETNAME 3
-#define PATHPREFIX_SETUP OUString("m")
+#define PATHPREFIX_SETUP "m"
/*-****************************************************************************************************************
@descr struct to hold information about one menu entry.
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx
index 23f062c6b13b..46bada49e3e3 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -58,8 +58,8 @@ using namespace com::sun::star::util;
using namespace com::sun::star::lang;
#define SEARCHPATH_DELIMITER ';'
-#define SIGN_STARTVARIABLE OUString( "$(" )
-#define SIGN_ENDVARIABLE OUString( ")" )
+#define SIGN_STARTVARIABLE "$("
+#define SIGN_ENDVARIABLE ")"
// Supported variables by the old SvtPathOptions implementation
#define SUBSTITUTE_INSTPATH "$(instpath)"