diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-31 08:43:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-31 08:43:52 +0100 |
commit | f0f0d90ba613f568ffdc1531ce7c9bce23c22bcd (patch) | |
tree | 5a9716ec1146c8fa4b27dd0257f3c62a85c2b41b /vcl | |
parent | fa48b92e10eaa2072818458d01361030860feb16 (diff) |
cppcheck: scope can be reduced
Change-Id: I62e1c203e5224e69b4864f321287f2fcbe3db08f
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/print3.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index 3bd9f05a359b..543ab88ad245 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -654,7 +654,7 @@ bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr<vcl::Printer for( int nJobIteration = 0; nJobIteration < nJobs; nJobIteration++ ) { - bool bError = false, bAborted = false; + bool bError = false; if( mpPrinter->StartJob( pPrintFile, i_rJobName, Application::GetDisplayName(), @@ -663,6 +663,7 @@ bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr<vcl::Printer i_xController->isDirectPrint(), maJobSetup.ImplGetConstData() ) ) { + bool bAborted = false; mbJobActive = true; i_xController->createProgressDialog(); const int nPages = i_xController->getFilteredPageCount(); |