summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-09 18:09:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-09 23:21:08 +0100
commitb3ef638cb25c2d09112f58b182fdb0e458e3dfa8 (patch)
tree480e6962c7d5398ce35e7d5cd7eb7a1f694718ba /extensions
parentaef6da021da33f099f99ed633814b8771ad4abda (diff)
Various loplugin (clang-cl)
Change-Id: Ib91d9f82b99989a37e5e03ecb9138a59436ce2c8 Reviewed-on: https://gerrit.libreoffice.org/47674 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/scanner/scanwin.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx
index 56a45b2dcf73..02ce3425d01a 100644
--- a/extensions/source/scanner/scanwin.cxx
+++ b/extensions/source/scanner/scanwin.cxx
@@ -431,7 +431,7 @@ void ImpTwain::ImplXfer()
if( nCurState == 6 )
{
TW_IMAGEINFO aInfo;
- HANDLE hDIB = 0;
+ HANDLE hDIB = nullptr;
long nWidth, nHeight, nXRes, nYRes;
if( PFUNC( &aAppIdent, &aSrcIdent, DG_IMAGE, DAT_IMAGEINFO, MSG_GET, &aInfo ) == TWRC_SUCCESS )
@@ -463,13 +463,13 @@ void ImpTwain::ImplXfer()
pBIH->biXPelsPerMeter = FRound( fFactor * nXRes );
pBIH->biYPelsPerMeter = FRound( fFactor * nYRes );
- GlobalUnlock( reinterpret_cast<HGLOBAL>((sal_IntPtr) hDIB) );
+ GlobalUnlock( static_cast<HGLOBAL>(hDIB) );
}
- mrMgr.SetData( reinterpret_cast<void*>((sal_IntPtr) hDIB) );
+ mrMgr.SetData( static_cast<void*>(hDIB) );
}
else
- GlobalFree( reinterpret_cast<HGLOBAL>((sal_IntPtr) hDIB) );
+ GlobalFree( static_cast<HGLOBAL>(hDIB) );
nCurState = 7;
}