summaryrefslogtreecommitdiff
path: root/tools/source/fsys/dirent.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-28 00:17:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-29 09:56:06 +0100
commit14d2a60053e30dcb7e6956637fe8d57d18563e3f (patch)
treea395e8185afde2031fa255094ee9b0d23f11afe9 /tools/source/fsys/dirent.cxx
parent65302eb1bed16db8f06cbb048d03ba6d644b3fb6 (diff)
remove ByteString::IsAlphaNumericAscii and refactor a bit
Diffstat (limited to 'tools/source/fsys/dirent.cxx')
-rw-r--r--tools/source/fsys/dirent.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index 64d2319828c1..14548558e107 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -65,7 +65,7 @@
#include <osl/file.hxx>
#include <rtl/instance.hxx>
-
+#include <comphelper/string.hxx>
using namespace osl;
@@ -333,12 +333,14 @@ ByteString ImplCutPath( const ByteString& rStr, sal_uInt16 nMax, char cAccDel )
if ( aCutPath.Len() > nMaxPathLen )
{
for ( sal_uInt16 n = nMaxPathLen; n > nMaxPathLen/2; --n )
- if ( !ByteString(aCutPath.GetChar(n)).IsAlphaNumericAscii() )
+ {
+ if (!comphelper::string::isalnumAscii(aCutPath.GetChar(n)))
{
aCutPath.Erase( n );
aCutPath += "...";
break;
}
+ }
}
if ( bInsertPrefix )