vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit c3e9d393ea10da48e8b9ab4742dbc5277b7c4882 Author: Matteo Casalin <[email protected]> AuthorDate: Thu Jan 3 16:40:17 2019 +0100 Commit: Matteo Casalin <[email protected]> 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 <[email protected]> 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; } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
