summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/tools/converter.cxx12
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;