Kaydet (Commit) 495b6575 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: Flag more inefficiencies

Change-Id: I45fcbcdf15134585443e528e8af2c9486d0b3bbe
üst 69acf266
......@@ -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();
......
......@@ -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.
......
......@@ -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)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment