diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 11:46:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:58:52 +0000 |
commit | 1f8c2a2e5c8bda6e6e35a868e5ac7afdc7d32317 (patch) | |
tree | b5cbc1e3b9fe31b6d5f635ad6668e9d01123dfd3 /include/vcl/sysdata.hxx | |
parent | a5b57622f9610d90e54adf6a2cf114f43b063c17 (diff) |
coverity#1187868 Uninitialized pointer field
Change-Id: I6fa813b983d217eb8ce028f9ae13a0cc764e29da
Diffstat (limited to 'include/vcl/sysdata.hxx')
-rw-r--r-- | include/vcl/sysdata.hxx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx index 2328cbe49f35..59aaaa06a9d8 100644 --- a/include/vcl/sysdata.hxx +++ b/include/vcl/sysdata.hxx @@ -68,6 +68,30 @@ struct SystemEnvData long aShellWindow; // the window of the frame's shell void* pShellWidget; // the frame's shell widget #endif + + SystemEnvData() + : nSize(0) +#if defined( WNT ) + , hWnd(0) +#elif defined( MACOSX ) + , mpNSView(NULL) +#elif defined( ANDROID ) +#elif defined( IOS ) +#elif defined( UNX ) + , pDisplay(NULL) + , aWindow(0) + , pSalFrame(NULL) + , pWidget(NULL) + , pVisual(NULL) + , nScreen(0) + , nDepth(0) + , aColormap(0) + , pAppContext(NULL) + , aShellWindow(0) + , pShellWidget(NULL) +#endif + { + } }; struct SystemParentData |