diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-09-29 17:46:35 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:31 +0200 |
commit | a74dec4e61e6c47439a2274254de511e537beacd (patch) | |
tree | bba344328efd8d263bd11030c9702182d8883c21 /vcl | |
parent | 25d189859f27e7a8276deae68878015a92753804 (diff) |
cppcheck scope reduction of var in vcl/... salprn.cxx
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/gdi/salprn.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx index 7fdd77394cc2..dc67b8d3ebfb 100644 --- a/vcl/win/source/gdi/salprn.cxx +++ b/vcl/win/source/gdi/salprn.cxx @@ -1689,7 +1689,6 @@ sal_Bool WinSalPrinter::StartJob( const XubString* pFileName, sal_Bool WinSalPrinter::EndJob() { - DWORD err = 0; HDC hDC = mhDC; if ( isValid() && hDC ) { @@ -1710,7 +1709,7 @@ sal_Bool WinSalPrinter::EndJob() sal_uLong nAcquire = pSalData->mpFirstInstance->ReleaseYieldMutex(); CATCH_DRIVER_EX_BEGIN; if( ::EndDoc( hDC ) <= 0 ) - err = GetLastError(); + DWORD err = GetLastError(); CATCH_DRIVER_EX_END( "exception in EndDoc", this ); pSalData->mpFirstInstance->AcquireYieldMutex( nAcquire ); |