diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-26 00:51:57 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-08 19:36:18 +0100 |
commit | 88895d7451ad095510d5dbe6c760b6fbccd95b05 (patch) | |
tree | 7c93ebb6c41c4659f679f092dd0a9bd7b8a893bf /toolkit | |
parent | ea3045b28943e78673a669e9e1a310d374951675 (diff) |
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@yahoo.com>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxprinter.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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 ); } |