summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-02 11:52:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-02 15:51:16 +0100
commitb89e9fa401fbfebc874e305122c6946662ba5800 (patch)
tree79271084d359dec16e7b6459125560865018e456 /sd
parenta7ff16ada6ac8998863a0a9708bc1a89b38bfd82 (diff)
coverity#705866 Dereference before null check
Change-Id: I3f70fda1098c2da97f36e474689853379e5b9ac2
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/presenter/PresenterHelper.cxx28
1 files changed, 12 insertions, 16 deletions
diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx
index 8bcc7ec34fa9..e186ac943aa7 100644
--- a/sd/source/ui/presenter/PresenterHelper.cxx
+++ b/sd/source/ui/presenter/PresenterHelper.cxx
@@ -132,23 +132,19 @@ Reference<awt::XWindow> SAL_CALL PresenterHelper::createWindow (
pParentWindow->EnableChildTransparentMode(true);
}
- if (pWindow != NULL)
- {
- pWindow->Show(bInitiallyVisible);
-
- pWindow->SetMapMode(MAP_PIXEL);
- pWindow->SetBackground();
- if ( ! bEnableParentClip)
- {
- pWindow->SetParentClipMode(PARENTCLIPMODE_NOCLIP);
- pWindow->SetPaintTransparent(true);
- }
- else
- {
- pWindow->SetParentClipMode(PARENTCLIPMODE_CLIP);
- pWindow->SetPaintTransparent(false);
- }
+ pWindow->Show(bInitiallyVisible);
+ pWindow->SetMapMode(MAP_PIXEL);
+ pWindow->SetBackground();
+ if ( ! bEnableParentClip)
+ {
+ pWindow->SetParentClipMode(PARENTCLIPMODE_NOCLIP);
+ pWindow->SetPaintTransparent(true);
+ }
+ else
+ {
+ pWindow->SetParentClipMode(PARENTCLIPMODE_CLIP);
+ pWindow->SetPaintTransparent(false);
}
return xWindow;