diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 11:34:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-21 13:29:29 +0200 |
commit | 6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (patch) | |
tree | ff375d3a9e989c731a42a1255b8e1cede2bb6bbd /sfx2 | |
parent | 89633c6da1cde46983926dcc2e0f8e08de0e9378 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this:
if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
if (aStr == "rem")
which compiles down to the same code.
Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/mieclip.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/bastyp/mieclip.cxx b/sfx2/source/bastyp/mieclip.cxx index 869b29fb6f17..8205f1751f84 100644 --- a/sfx2/source/bastyp/mieclip.cxx +++ b/sfx2/source/bastyp/mieclip.cxx @@ -51,15 +51,15 @@ SvStream* MSE40HTMLClipFormatObj::IsValid( SvStream& rStream ) { nIndex = 0; OString sTmp(sLine.getToken(0, ':', nIndex)); - if (sTmp.equalsL(RTL_CONSTASCII_STRINGPARAM("StartHTML"))) + if (sTmp == "StartHTML") nStt = sLine.copy(nIndex).toInt32(); - else if (sTmp.equalsL(RTL_CONSTASCII_STRINGPARAM("EndHTML"))) + else if (sTmp == "EndHTML") nEnd = sLine.copy(nIndex).toInt32(); - else if (sTmp.equalsL(RTL_CONSTASCII_STRINGPARAM("StartFragment"))) + else if (sTmp == "StartFragment") nFragStart = sLine.copy(nIndex).toInt32(); - else if (sTmp.equalsL(RTL_CONSTASCII_STRINGPARAM("EndFragment"))) + else if (sTmp == "EndFragment") nFragEnd = sLine.copy(nIndex).toInt32(); - else if (sTmp.equalsL(RTL_CONSTASCII_STRINGPARAM("SourceURL"))) + else if (sTmp == "SourceURL") sBaseURL = OStringToOUString( sLine.copy(nIndex), RTL_TEXTENCODING_UTF8 ); if (nEnd >= 0 && nStt >= 0 && |