summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-12-30 19:04:35 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2016-01-26 21:30:21 +0100
commitab4264482fd8003068a0fbc10ef19662e5f5eae1 (patch)
tree17f9c8e7ca5a03da90375f83808fb757e5386269 /vcl/source
parenta5bbe614d5166883ff3a5399bf2a29877f34f7af (diff)
sal_uIntPtr/sal_uLong to sal_uInt32 for number of printed copies
Change-Id: Ib91ef6fa9b52b0e7c968767a2c19b043c0797d5f
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/print3.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index b839fdfa7166..2310eb2f88b3 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -536,18 +536,15 @@ bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr<vcl::Printer
if ( IsJobActive() || IsPrinting() )
return false;
- sal_uLong nCopies = mnCopyCount;
+ sal_uInt32 nCopies = mnCopyCount;
bool bCollateCopy = mbCollateCopy;
bool bUserCopy = false;
if ( nCopies > 1 )
{
- sal_uLong nDevCopy;
-
- if ( bCollateCopy )
- nDevCopy = GetCapabilities( PrinterCapType::CollateCopies );
- else
- nDevCopy = GetCapabilities( PrinterCapType::Copies );
+ const sal_uInt32 nDevCopy = GetCapabilities( bCollateCopy
+ ? PrinterCapType::CollateCopies
+ : PrinterCapType::Copies );
// need to do copies by hand ?
if ( nCopies > nDevCopy )