From e7e0455b0285f60ba999a0a6a831f3be271f5a37 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 10 Feb 2012 01:58:15 +0900 Subject: Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("...")) to equalsAscii("...") --- sax/source/tools/converter.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sax') 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; -- cgit