[Libreoffice-commits] core.git: vcl/unx
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Jan 13 10:26:53 UTC 2019
vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit c3e9d393ea10da48e8b9ab4742dbc5277b7c4882
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Thu Jan 3 16:40:17 2019 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sun Jan 13 11:26:33 2019 +0100
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 at yahoo.com>
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;
}
}
More information about the Libreoffice-commits
mailing list