From 8f5629fd5aafc85e509a4160a11a285b0a66e7c0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 11 Jun 2012 13:15:18 +0100 Subject: remove EraseLeadingChars and EraseTrailingChars Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892 --- xmloff/source/style/xmlnumfi.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmloff') diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index 15d55fec2c4c..2802c6fbe639 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -27,6 +27,7 @@ ************************************************************************/ +#include #include #include @@ -1764,7 +1765,7 @@ void SvXMLNumFormatContext::AddNumber( const SvXMLNumberInfo& rInfo ) // #i43959# For scientific numbers, "#" in the integer part forces a digit, // so it has to be removed if nLeading is 0 (".00E+0", not "#.00E+0"). - aNumStr.EraseLeadingChars( (sal_Unicode)'#' ); + aNumStr = comphelper::string::stripStart(aNumStr, '#'); } if ( nEmbeddedCount ) -- cgit