diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-02 10:55:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 09:18:19 +0000 |
commit | bacfd2dc4cea1a5d87658ed8592116acd931e000 (patch) | |
tree | d22172a33fdd13a440b6882a28c23ea2d639bbad /padmin | |
parent | 6281eb0e0792da0194c07da18296e94dd944b8e5 (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.cxx | 3 |
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, ';' ); |