summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp/sfxhtml.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-02 10:55:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-05 09:18:19 +0000
commitbacfd2dc4cea1a5d87658ed8592116acd931e000 (patch)
treed22172a33fdd13a440b6882a28c23ea2d639bbad /sfx2/source/bastyp/sfxhtml.cxx
parent6281eb0e0792da0194c07da18296e94dd944b8e5 (diff)
add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount converted low-hanging variants to rtl::O[UString]::getToken loops added unit test
Diffstat (limited to 'sfx2/source/bastyp/sfxhtml.cxx')
-rw-r--r--sfx2/source/bastyp/sfxhtml.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx
index acf69186d2ac..40758e224de9 100644
--- a/sfx2/source/bastyp/sfxhtml.cxx
+++ b/sfx2/source/bastyp/sfxhtml.cxx
@@ -47,6 +47,7 @@
#include <sfx2/sfxhtml.hxx>
#include <com/sun/star/beans/XPropertyContainer.hpp>
+#include <comphelper/string.hxx>
#include <vector>
@@ -357,7 +358,7 @@ double SfxHTMLParser::GetTableDataOptionsValNum( sal_uInt32& nNumForm,
rFormatter.GetFormatForLanguageIfBuiltIn( 0, eParseLang );
double fVal;
rFormatter.IsNumberFormat( aValStr, nParseForm, fVal );
- if ( aNumStr.GetTokenCount( ';' ) > 2 )
+ if ( comphelper::string::getTokenCount(aNumStr, ';') > 2 )
{
eNumLang = (LanguageType)aNumStr.GetToken( 1, ';' ).ToInt32();
xub_StrLen nPos = aNumStr.Search( ';' );