summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-01-03 16:40:17 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-01-13 11:26:33 +0100
commitc3e9d393ea10da48e8b9ab4742dbc5277b7c4882 (patch)
tree52a4f2176c40f352e7464c059b532479b1a91213 /vcl
parente57afb5fd09ed07252a8ff963f63dc08b2f1b582 (diff)
Avoid index for single getToken call, simplify
Change-Id: Idd80e80845aba8dbab7144502f175ff6bafa9b18 Reviewed-on: https://gerrit.libreoffice.org/66230 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index dd67982a9725..a4010682d3d0 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -849,10 +849,7 @@ uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles()
if ( sToken.lastIndexOf( ';' ) != -1 )
{
- sal_Int32 nZero = 0;
- OUString aCurrentToken = sToken.getToken( 0, ';', nZero);
-
- sToken = aCurrentToken;
+ sToken = sToken.getToken(0, ';');
break;
}
}