Kaydet (Commit) a74dec4e authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck scope reduction of var in vcl/... salprn.cxx

üst 25d18985
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment