Kaydet (Commit) 4b6016af authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: I752d7e9ddc11139e454135b88476341277f7f01d
üst 9f075246
...@@ -2492,7 +2492,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2492,7 +2492,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
sal_Int32 nTempValue = 0; sal_Int32 nTempValue = 0;
if (rValue >>= nTempValue) if (rValue >>= nTempValue)
{ {
rsType.appendAscii("integer"); rsType.append("integer");
bConverted = true; bConverted = true;
::sax::Converter::convertNumber(rsValue, nTempValue); ::sax::Converter::convertNumber(rsValue, nTempValue);
} }
...@@ -2504,7 +2504,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2504,7 +2504,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
bool bTempValue = false; bool bTempValue = false;
if (rValue >>= bTempValue) if (rValue >>= bTempValue)
{ {
rsType.appendAscii("boolean"); rsType.append("boolean");
bConverted = true; bConverted = true;
::sax::Converter::convertBool(rsValue, bTempValue); ::sax::Converter::convertBool(rsValue, bTempValue);
} }
...@@ -2517,7 +2517,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2517,7 +2517,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
double fTempValue = 0.0; double fTempValue = 0.0;
if (rValue >>= fTempValue) if (rValue >>= fTempValue)
{ {
rsType.appendAscii("float"); rsType.append("float");
bConverted = true; bConverted = true;
::sax::Converter::convertDouble(rsValue, fTempValue); ::sax::Converter::convertDouble(rsValue, fTempValue);
} }
...@@ -2529,7 +2529,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2529,7 +2529,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
OUString sTempValue; OUString sTempValue;
if (rValue >>= sTempValue) if (rValue >>= sTempValue)
{ {
rsType.appendAscii("string"); rsType.append("string");
bConverted = true; bConverted = true;
rsValue.append(sTempValue); rsValue.append(sTempValue);
} }
...@@ -2544,7 +2544,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2544,7 +2544,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
if (rValue >>= aDate) if (rValue >>= aDate)
{ {
rsType.appendAscii("date"); rsType.append("date");
bConverted = true; bConverted = true;
com::sun::star::util::DateTime aTempValue; com::sun::star::util::DateTime aTempValue;
aTempValue.Day = aDate.Day; aTempValue.Day = aDate.Day;
...@@ -2559,7 +2559,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2559,7 +2559,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
else else
if (rValue >>= aTime) if (rValue >>= aTime)
{ {
rsType.appendAscii("time"); rsType.append("time");
bConverted = true; bConverted = true;
com::sun::star::util::Duration aTempValue; com::sun::star::util::Duration aTempValue;
aTempValue.Days = 0; aTempValue.Days = 0;
...@@ -2574,7 +2574,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2574,7 +2574,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
else else
if (rValue >>= aDateTime) if (rValue >>= aDateTime)
{ {
rsType.appendAscii("date"); rsType.append("date");
bConverted = true; bConverted = true;
::sax::Converter::convertDateTime(rsValue, aDateTime, 0); ::sax::Converter::convertDateTime(rsValue, aDateTime, 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment