summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-01 09:26:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-02 08:00:10 +0000
commit1461ebbbb5d47d90e31f0945a4878a68fbee5213 (patch)
tree5af28d3cdaf4d5195ddf9e69727807ab8104a8e2 /sax/source
parentc0f9bdd3e644e3ebf690aff9eb1aeec4f16dbf27 (diff)
expand out ::sax::Converter::convertNumber to OUString::number
which results in much simpler code overall, there is no need to go via an OUStringBuffer all the time Change-Id: I69eba92c93f471fa9a45f97c29c56dcf3cd1ebf8 Reviewed-on: https://gerrit.libreoffice.org/33773 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/tools/converter.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index 7f2069bba9a6..c3a77033e8f3 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -524,12 +524,6 @@ void Converter::convertColor( OUStringBuffer& rBuffer, sal_Int32 nColor )
rBuffer.append( sal_Unicode( aHexTab[ nCol & 0xf ] ) );
}
-/** convert number to string */
-void Converter::convertNumber( OUStringBuffer& rBuffer, sal_Int32 nNumber )
-{
- rBuffer.append( nNumber );
-}
-
/** convert string to number with optional min and max values */
bool Converter::convertNumber( sal_Int32& rValue,
const OUString& rString,
@@ -651,7 +645,7 @@ void Converter::convertAngle(OUStringBuffer& rBuffer, sal_Int16 const nAngle)
{
#if 1
// wrong, but backward compatible with OOo/LO < 4.4
- ::sax::Converter::convertNumber(rBuffer, nAngle);
+ rBuffer.append(nAngle);
#else
// maybe in the future... (see other convertAngle)
double fAngle(double(nAngle) / 10.0);
@@ -2555,7 +2549,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
{
rsType.append("integer");
bConverted = true;
- ::sax::Converter::convertNumber(rsValue, nTempValue);
+ rsValue.append(nTempValue);
}
}
break;