diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-10 01:58:15 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-10 01:59:26 +0900 |
commit | e7e0455b0285f60ba999a0a6a831f3be271f5a37 (patch) | |
tree | 612248965d3b28720ae47d93c2ddf2dcd017e30e /sax | |
parent | ef09cbf45347f5f1ea34f35acedeea5aa3a7f6f6 (diff) |
Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("...")) to equalsAscii("...")
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/converter.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 8d573e2e3f64..f71ea6253a88 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -2217,7 +2217,7 @@ bool Converter::convertAny(com::sun::star::uno::Any& rValue, { bool bConverted = false; - if (rsType.equalsAscii("boolean")) + if (rsType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("boolean"))) { bool bTempValue = false; ::sax::Converter::convertBool(bTempValue, rsValue); @@ -2225,7 +2225,7 @@ bool Converter::convertAny(com::sun::star::uno::Any& rValue, bConverted = true; } else - if (rsType.equalsAscii("integer")) + if (rsType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("integer"))) { sal_Int32 nTempValue = 0; ::sax::Converter::convertNumber(nTempValue, rsValue); @@ -2233,7 +2233,7 @@ bool Converter::convertAny(com::sun::star::uno::Any& rValue, bConverted = true; } else - if (rsType.equalsAscii("float")) + if (rsType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("float"))) { double fTempValue = 0.0; ::sax::Converter::convertDouble(fTempValue, rsValue); @@ -2241,13 +2241,13 @@ bool Converter::convertAny(com::sun::star::uno::Any& rValue, bConverted = true; } else - if (rsType.equalsAscii("string")) + if (rsType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("string"))) { rValue <<= rsValue; bConverted = true; } else - if (rsType.equalsAscii("date")) + if (rsType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("date"))) { com::sun::star::util::DateTime aTempValue; ::sax::Converter::convertDateTime(aTempValue, rsValue); @@ -2255,7 +2255,7 @@ bool Converter::convertAny(com::sun::star::uno::Any& rValue, bConverted = true; } else - if (rsType.equalsAscii("time")) + if (rsType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("time"))) { com::sun::star::util::Duration aTempValue; com::sun::star::util::Time aConvValue; |