[Libreoffice-commits] core.git: toolkit/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Feb 8 18:36:47 UTC 2019
toolkit/source/awt/vclxprinter.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 88895d7451ad095510d5dbe6c760b6fbccd95b05
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Jan 26 00:51:57 2019 +0100
Commit: Matteo Casalin <matteo.casalin at 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.casalin at 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 );
}
More information about the Libreoffice-commits
mailing list