summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-21 15:52:45 +0200
committerNoel Grandin <noel@peralex.com>2013-11-22 08:07:19 +0200
commit73342dbb82ba074d01962359dac50fb2aa36cbeb (patch)
treeaddab0397681725810b42ad55ab15be3fdb4c236 /svtools
parent071c3f3e93c4c00cf57ce3c382325cd717fed511 (diff)
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 'svtools')
-rw-r--r--svtools/source/misc/imap2.cxx6
-rw-r--r--svtools/source/svhtml/parhtml.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/misc/imap2.cxx b/svtools/source/misc/imap2.cxx
index 3f72ec305d6e..b045557219eb 100644
--- a/svtools/source/misc/imap2.cxx
+++ b/svtools/source/misc/imap2.cxx
@@ -524,9 +524,9 @@ sal_uLong ImageMap::ImpDetectFormat( SvStream& rIStm )
{
aStr = aStr.toAsciiLowerCase();
- if ( (aStr.indexOfL(RTL_CONSTASCII_STRINGPARAM("rect")) != -1) ||
- (aStr.indexOfL(RTL_CONSTASCII_STRINGPARAM("circ")) != -1) ||
- (aStr.indexOfL(RTL_CONSTASCII_STRINGPARAM("poly")) != -1) )
+ if ( (aStr.indexOf("rect") != -1) ||
+ (aStr.indexOf("circ") != -1) ||
+ (aStr.indexOf("poly") != -1) )
{
if ( ( aStr.indexOf('(') != -1 ) &&
( aStr.indexOf(')') != -1 ) )
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 54c154838a14..a86fad6b6bba 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1957,7 +1957,7 @@ bool HTMLParser::IsHTMLFormat( const sal_Char* pHeader,
return true;
// <HTML> somewhere in the first 80 characters of the document
- nStart = sCmp.indexOfL(RTL_CONSTASCII_STRINGPARAM(OOO_STRING_SVTOOLS_HTML_html));
+ nStart = sCmp.indexOf(OOO_STRING_SVTOOLS_HTML_html);
if( nStart>0 && '<'==sCmp[nStart-1] &&
nStart+4 < sCmp.getLength() && '>'==sCmp[nStart+4] )
return true;