diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 10:05:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 10:07:32 +0200 |
commit | 1730df0127ff230cf6c89f4815f5b59c8603fa2b (patch) | |
tree | 4d5b32ea155c173fe3cfd905bb148e0998286d9a /rsc | |
parent | 52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (diff) |
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
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/rsc/rsc.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
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<sal_Int32>(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); |