summaryrefslogtreecommitdiff
path: root/padmin
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 /padmin
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 'padmin')
-rw-r--r--padmin/source/helper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx
index 0a1cee5e557f..4ceee33f4d37 100644
--- a/padmin/source/helper.cxx
+++ b/padmin/source/helper.cxx
@@ -39,6 +39,7 @@
#include <com/sun/star/ui/dialogs/XControlAccess.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
+#include <comphelper/string.hxx>
#include <tools/urlobj.hxx>
#include <unotools/confignode.hxx>
#include <vcl/unohelp.hxx>
@@ -117,7 +118,7 @@ void padmin::FindFiles( const String& rDirectory, ::std::list< String >& rResult
aStatus.getFileType() == FileStatus::Link )
{
String aFileName = aStatus.getFileName();
- int nToken = rSuffixes.GetTokenCount( ';' );
+ int nToken = comphelper::string::getTokenCount(rSuffixes, ';');
while( nToken-- )
{
String aSuffix = rSuffixes.GetToken( nToken, ';' );