diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 15:52:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-22 08:07:19 +0200 |
commit | 73342dbb82ba074d01962359dac50fb2aa36cbeb (patch) | |
tree | addab0397681725810b42ad55ab15be3fdb4c236 /rsc | |
parent | remove unnecessary use of OUString constructor in equalsIgnoreAsciiCase (diff) | |
download | core-73342dbb82ba074d01962359dac50fb2aa36cbeb.tar.gz core-73342dbb82ba074d01962359dac50fb2aa36cbeb.zip |
remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new
OUString and OString methods that can detect string literals.
Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/rsc/rsc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx index 4ad9b4487abc..576745eb876a 100644 --- a/rsc/source/rsc/rsc.cxx +++ b/rsc/source/rsc/rsc.cxx @@ -857,7 +857,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, aOStm.WriteLine(aLine); } - else if (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("ImageList")) != -1) + else if (aLine.indexOf("ImageList") != -1) { ::std::vector< ::std::pair< OString, sal_Int32 > > aEntryVector; @@ -872,7 +872,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, if( !aIStm.ReadLine(aLine) ) break; } - while (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("Prefix")) == -1); + while (aLine.indexOf("Prefix") == -1); const OString aPrefix( getToken(aLine, 1, '"') ); aIStm.Seek( nImgListStartPos ); @@ -882,7 +882,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, if (!aIStm.ReadLine(aLine) ) break; } - while (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("IdList")) == -1); + while (aLine.indexOf("IdList") == -1); // scan all ids and collect images while (aLine.indexOf('}') == -1) @@ -917,7 +917,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, { aIStm.ReadLine( aLine ); - if (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("IdList")) != -1) + if (aLine.indexOf("IdList") != -1) { while (aLine.indexOf('}') == -1) aIStm.ReadLine(aLine); |