diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-03 16:40:17 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-13 11:26:33 +0100 |
commit | c3e9d393ea10da48e8b9ab4742dbc5277b7c4882 (patch) | |
tree | 52a4f2176c40f352e7464c059b532479b1a91213 /vcl | |
parent | e57afb5fd09ed07252a8ff963f63dc08b2f1b582 (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.cxx | 5 |
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; } } |