diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-08 13:08:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-08 14:15:55 +0000 |
commit | 661acb5e6fca3a65cd355b5dc7ce6d56c84f7ad0 (patch) | |
tree | cde7f562cee88c11860ae1d8d1a91a52f0188b1c /vcl | |
parent | 9ff5689fe25362431f5bf4f2b25056e8899bee40 (diff) |
coverity#1169875 Uninitialized pointer field
Change-Id: I8c31ab748efedcfc88b80afc56bce1edf69084a2
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/window.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 7ee6c70f13c1..f645d5c3f0c5 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -718,6 +718,12 @@ CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, Window* pSour void Window::ImplInitWindowData( WindowType nType ) { + // We will eventually being removing the inheritance of OutputDevice from Window. + // It will be replaced with a composition relationship. A Window will use an OutputDevice, + // it will not *be* an OutputDevice + mpOutputDevice = (OutputDevice*)this; + + mpWindowImpl = new WindowImpl( nType ); meOutDevType = OUTDEV_WINDOW; @@ -732,11 +738,6 @@ void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSyste { DBG_ASSERT( mpWindowImpl->mbFrame || pParent, "Window::Window(): pParent == NULL" ); - // We will eventually being removing the inheritance of OutputDevice from Window. - // It will be replaced with a composition relationship. A Window will use an OutputDevice, - // it will not *be* an OutputDevice - mpOutputDevice = (OutputDevice*)this; - ImplSVData* pSVData = ImplGetSVData(); Window* pRealParent = pParent; |