diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 16:44:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-15 07:59:13 +0000 |
commit | 48b1c8898d2f5a54435d23c412a0c65b553ef46d (patch) | |
tree | ef87e03b112f675718ee542d86d42ed7c8beb4fb /include | |
parent | 613213240a84327a0a72bb5ee98cc88d50c1fd0e (diff) |
clang-cl loplugin: vcl
Change-Id: I40f8a6fef9d66b28a1d72551a6873b041b38b09e
Reviewed-on: https://gerrit.libreoffice.org/29841
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/postwin.h | 3 | ||||
-rw-r--r-- | include/vcl/sysdata.hxx | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/postwin.h b/include/postwin.h index 95cd6f836ca3..b2df82374da8 100644 --- a/include/postwin.h +++ b/include/postwin.h @@ -65,7 +65,8 @@ #define STRETCH_DELETESCANS 3 #endif -#ifdef __cplusplus +#if !defined INCLUDED_POSTWIN_H && defined __cplusplus +#define INCLUDED_POSTWIN_H extern "C" { BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 ); diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx index 458725d24033..bb2ddf8b510a 100644 --- a/include/vcl/sysdata.hxx +++ b/include/vcl/sysdata.hxx @@ -82,7 +82,7 @@ struct SystemEnvData SystemEnvData() : nSize(0) #if defined(_WIN32) - , hWnd(0) + , hWnd(nullptr) #elif defined( MACOSX ) , mpNSView(nullptr) , mbOpenGL(false) @@ -157,8 +157,8 @@ struct SystemGraphicsData SystemGraphicsData() : nSize( sizeof( SystemGraphicsData ) ) #if defined(_WIN32) - , hDC( 0 ) - , hWnd( 0 ) + , hDC( nullptr ) + , hWnd( nullptr ) #elif defined( MACOSX ) , rCGContext( nullptr ) #elif defined( ANDROID ) |