summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-24 17:53:17 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-03-24 17:53:17 +0100
commitf9d0bfe98d631fb0a27f2827188ce4af6b755d3c (patch)
tree4026139af09e996ed83fa15162d496a02e2a33b5 /sd
parentd37bc0b2bb8ac4f460fe3799efa70ed29fdd69cb (diff)
coverity#704289 Logically dead code
Change-Id: I84491fc5947364191c14efa57fd106c9a57bd0be
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/sdpage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 5c4337fe2ecc..688d0938348b 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -2033,7 +2033,7 @@ SdrObject* convertPresentationObjectImpl( SdPage& rPage, SdrObject* pSourceObj,
if( !pModel || !pSourceObj )
return pSourceObj;
- ::svl::IUndoManager* pUndoManager = pModel ? static_cast<SdDrawDocument*>(pModel)->GetUndoManager() : 0;
+ ::svl::IUndoManager* pUndoManager = static_cast<SdDrawDocument*>(pModel)->GetUndoManager();
const bool bUndo = pUndoManager && pUndoManager->IsInListAction() && rPage.IsInserted();
SdrObject* pNewObj = pSourceObj;