diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-23 16:42:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-23 17:01:04 +0000 |
commit | c634df5815d68b58ec9a7a19272bfb4a4053e4e8 (patch) | |
tree | dbe168a54f308d5f2faf220e77304170891047f7 /sfx2/source/dialog/partwnd.cxx | |
parent | 09c749cc5787be8d17ac5ddf0bc9aa0aead92d6b (diff) |
coverity#440721 Dereference after null check
Change-Id: I1a6d6f5d83f3b6c5f8d8d19b003f2e4f6976d6e9
Diffstat (limited to 'sfx2/source/dialog/partwnd.cxx')
-rw-r--r-- | sfx2/source/dialog/partwnd.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/partwnd.cxx b/sfx2/source/dialog/partwnd.cxx index a0de0f568905..63b156247d2c 100644 --- a/sfx2/source/dialog/partwnd.cxx +++ b/sfx2/source/dialog/partwnd.cxx @@ -61,8 +61,9 @@ SfxPartChildWnd_Impl::SfxPartChildWnd_Impl // Create Window pWindow = new SfxPartDockWnd_Impl( pBindings, this, pParentWnd, WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK ); eChildAlignment = SFX_ALIGN_TOP; - if ( pInfo ) - pInfo->nFlags |= SFX_CHILDWIN_FORCEDOCK; + + assert(pInfo); + pInfo->nFlags |= SFX_CHILDWIN_FORCEDOCK; ((SfxDockingWindow*)pWindow)->SetFloatingSize( Size( 175, 175 ) ); pWindow->SetSizePixel( Size( 175, 175 ) ); |