From 1730df0127ff230cf6c89f4815f5b59c8603fa2b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Nov 2013 10:05:20 +0200 Subject: remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::append Convert code like: aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") ); to: aOStringBuf.append( " is missing )" ); which compiles down to the same code. Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71 --- rsc/source/rsc/rsc.cxx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'rsc') diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx index 1b94cf11fb91..4ad9b4487abc 100644 --- a/rsc/source/rsc/rsc.cxx +++ b/rsc/source/rsc/rsc.cxx @@ -848,8 +848,8 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, if( GetImageFilePath( rOutputFile, rContext, aBaseFileName, aFilePath, pSysListFile ) ) { - aLine = OStringBuffer(RTL_CONSTASCII_STRINGPARAM("File = \"")). - append(aFilePath).append(RTL_CONSTASCII_STRINGPARAM("\";")). + aLine = OStringBuffer("File = \""). + append(aFilePath).append("\";"). makeStringAndClear(); } else @@ -926,22 +926,21 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, aOStm.WriteLine(aLine); } - aOStm.WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("FileList = {"))); + aOStm.WriteLine(OString("FileList = {")); for( sal_uInt32 i = 0; i < aEntryVector.size(); ++i ) { - OStringBuffer aEntryString( - RTL_CONSTASCII_STRINGPARAM("< \"")); + OStringBuffer aEntryString("< \""); aEntryString.append(aEntryVector[i].first); - aEntryString.append(RTL_CONSTASCII_STRINGPARAM("\"; ")); + aEntryString.append("\"; "); aEntryString.append(static_cast(aEntryVector[ i ].second)); - aEntryString.append(RTL_CONSTASCII_STRINGPARAM("; >;")); + aEntryString.append("; >;"); aOStm.WriteLine(aEntryString.makeStringAndClear()); } - aOStm.WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("};"))); + aOStm.WriteLine(OString("};")); } else aOStm.WriteLine(aLine); -- cgit