toolkit/source/awt/vclxprinter.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 88895d7451ad095510d5dbe6c760b6fbccd95b05 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sat Jan 26 00:51:57 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Fri Feb 8 19:36:18 2019 +0100 Avoid index for single getToken call Change-Id: I4b7dfd024369258efb84ec8d1c1cd16f4a7aa730 Reviewed-on: https://gerrit.libreoffice.org/66944 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx index aa24f31d939f..912e721b6eda 100644 --- a/toolkit/source/awt/vclxprinter.cxx +++ b/toolkit/source/awt/vclxprinter.cxx @@ -206,9 +206,8 @@ void VCLXPrinterPropertySet::selectForm( const OUString& rFormDescription ) { ::osl::MutexGuard aGuard( Mutex ); - sal_Int32 nIndex = 0; sal_uInt16 nPaperBin = sal::static_int_cast< sal_uInt16 >( - rFormDescription.getToken( 3, ';', nIndex ).toInt32()); + rFormDescription.getToken( 3, ';' ).toInt32()); GetPrinter()->SetPaperBin( nPaperBin ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits