diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-01 10:20:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-01 17:19:50 +0100 |
commit | 088afc6222b8609750a9869840ad3363ae3e923e (patch) | |
tree | a1d7b4d6a7660531367ae70280822fa17ac737f3 /vcl/source/window/dockwin.cxx | |
parent | f9274ebab5963a988f622d67c5506c1455b8b31d (diff) |
coverity#708645 Uninitialized pointer field
Change-Id: I567b8f129b0afeeab216d796a8df5fa79410fba8
Diffstat (limited to 'vcl/source/window/dockwin.cxx')
-rw-r--r-- | vcl/source/window/dockwin.cxx | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx index 7f067c30a147..72ecded1caff 100644 --- a/vcl/source/window/dockwin.cxx +++ b/vcl/source/window/dockwin.cxx @@ -298,18 +298,32 @@ bool DockingWindow::ImplStartDocking( const Point& rPos ) void DockingWindow::ImplInitDockingWindowData() { - mpImplData = new ImplData; - mpWindowImpl->mbDockWin = true; - - mpFloatWin = NULL; - mbDockCanceled = false; - mbDockPrevented = false; - mbFloatPrevented = false; - mbDocking = false; - mbPinned = false; - mbRollUp = false; - mbDockBtn = false; - mbHideBtn = false; + mpWindowImpl->mbDockWin = true; + mpFloatWin = NULL; + mpOldBorderWin = NULL; + mpImplData = new ImplData; + mnTrackX = 0; + mnTrackY = 0; + mnTrackWidth = 0; + mnTrackHeight = 0; + mnDockLeft = 0; + mnDockTop = 0; + mnDockRight = 0; + mnDockBottom = 0; + mnFloatBits = 0; + mbDockCanceled = false; + mbDockPrevented = false; + mbFloatPrevented = false; + mbDockable = false; + mbDocking = false; + mbDragFull = false; + mbLastFloatMode = false; + mbStartFloat = false; + mbTrackDock = false; + mbPinned = false; + mbRollUp = false; + mbDockBtn = false; + mbHideBtn = false; } void DockingWindow::ImplInit( Window* pParent, WinBits nStyle ) @@ -387,7 +401,7 @@ void DockingWindow::ImplLoadRes( const ResId& rResId ) } DockingWindow::DockingWindow( WindowType nType ) : - Window( nType ) + Window(nType) { ImplInitDockingWindowData(); } |