summaryrefslogtreecommitdiff
path: root/include/vcl/sysdata.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-27 11:46:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-27 12:58:52 +0000
commit1f8c2a2e5c8bda6e6e35a868e5ac7afdc7d32317 (patch)
treeb5cbc1e3b9fe31b6d5f635ad6668e9d01123dfd3 /include/vcl/sysdata.hxx
parenta5b57622f9610d90e54adf6a2cf114f43b063c17 (diff)
coverity#1187868 Uninitialized pointer field
Change-Id: I6fa813b983d217eb8ce028f9ae13a0cc764e29da
Diffstat (limited to 'include/vcl/sysdata.hxx')
-rw-r--r--include/vcl/sysdata.hxx24
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