diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-06-24 19:20:00 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-06-30 23:00:15 +0200 |
commit | f897da3f2d5326cc74d7c656f6d55d8449a24807 (patch) | |
tree | 90be1cca557fabf88e4d83bb7a438b62bdc33ee6 /svx | |
parent | ab1e5f514c6f7d9ca482fe628b38e00d51c1e4a5 (diff) |
Avoid getTokenCount()
Change-Id: Ia3c7657a89187ff21fca6d07c27ba260a0be36d8
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/gallery2/galmisc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx index 99b2b2628537..0fbeebe1e869 100644 --- a/svx/source/gallery2/galmisc.cxx +++ b/svx/source/gallery2/galmisc.cxx @@ -169,7 +169,7 @@ OUString GetReducedString( const INetURLObject& rURL, sal_Int32 nMaxLen ) { OUString aReduced( rURL.GetMainURL( INetURLObject::DecodeMechanism::Unambiguous ) ); - aReduced = aReduced.getToken( comphelper::string::getTokenCount(aReduced, '/') - 1, '/' ); + aReduced = aReduced.copy(aReduced.lastIndexOf('/')+1); if( INetProtocol::PrivSoffice != rURL.GetProtocol() ) { |