summaryrefslogtreecommitdiff
path: root/sc/source/ui/optdlg/tpusrlst.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 /sc/source/ui/optdlg/tpusrlst.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 'sc/source/ui/optdlg/tpusrlst.cxx')
-rw-r--r--sc/source/ui/optdlg/tpusrlst.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/optdlg/tpusrlst.cxx b/sc/source/ui/optdlg/tpusrlst.cxx
index 46b9037d6d74..099d9f9165a0 100644
--- a/sc/source/ui/optdlg/tpusrlst.cxx
+++ b/sc/source/ui/optdlg/tpusrlst.cxx
@@ -29,7 +29,7 @@
#undef SC_DLLIMPLEMENTATION
-//------------------------------------------------------------------
+#include <comphelper/string.hxx>
#include <vcl/msgbox.hxx>
#include "global.hxx"
@@ -327,7 +327,7 @@ void ScTpUserLists::MakeListStr( String& rListStr )
aInputStr.ConvertLineEnd( LINEEND_LF );
- xub_StrLen nToken=rListStr.GetTokenCount(LF);
+ xub_StrLen nToken = comphelper::string::getTokenCount(rListStr, LF);
for(xub_StrLen i=0;i<nToken;i++)
{