diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-18 11:44:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-18 11:44:25 +0200 |
commit | 023f17bccf0e6f99df5f8e2855ba562668b1349e (patch) | |
tree | 751e9492ec600bc4d48fed3c6996a45211d4395a /vcl/win | |
parent | 0761c148dd4579cec69eaeaace260f6bcec2dbed (diff) |
fix windows build
...after c88165dfb46c771eba6324ec061bf4455732194e "loplugin: unused return
values in vcl/"
Change-Id: Ie1b46d94e4e102770b1dfcb6138304299fe8f76d
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/salprn.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx index b0aca3c25a27..e7bdbb249c84 100644 --- a/vcl/win/gdi/salprn.cxx +++ b/vcl/win/gdi/salprn.cxx @@ -1650,7 +1650,7 @@ SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, bool bNewJobDat return mpGraphics; } -bool WinSalPrinter::EndPage() +void WinSalPrinter::EndPage() { HDC hDC = mhDC; if ( hDC && mpGraphics ) @@ -1661,20 +1661,17 @@ bool WinSalPrinter::EndPage() } if( ! isValid() ) - return FALSE; + return; volatile int nRet = 0; CATCH_DRIVER_EX_BEGIN; nRet = ::EndPage( hDC ); CATCH_DRIVER_EX_END( "exception in EndPage", this ); - if ( nRet > 0 ) - return TRUE; - else + if ( nRet <= 0 ) { GetLastError(); mnError = SAL_PRINTER_ERROR_GENERALERROR; - return FALSE; } } |