diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-04 20:49:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-04 20:52:34 +0100 |
commit | 071ad23d8f09c46a6e5b20eab9e49c6dea8ccc6a (patch) | |
tree | a6107d8c41e6d43744e50c5ca151991ba1c02068 | |
parent | 6220362e844ad0e50a38c1627ddd05a082882009 (diff) |
coverity#1292910 Dereference after null check
Change-Id: I5c6b2e603cfada736fcca21d5124c01bfab77831
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index e70254a24558..3b4e1101eb3f 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -144,7 +144,7 @@ ScUndoAnchorData::~ScUndoAnchorData() void ScUndoAnchorData::Undo() { // Trigger Object Change - if(pObj && pObj->IsInserted() && pObj->GetPage() && pObj->GetModel()) + if (pObj->IsInserted() && pObj->GetPage() && pObj->GetModel()) { SdrHint aHint(*pObj); pObj->GetModel()->Broadcast(aHint); @@ -164,14 +164,13 @@ void ScUndoAnchorData::Redo() ScDrawLayer::SetCellAnchoredFromPosition(*pObj, *mpDoc, mnTab); // Trigger Object Change - if(pObj && pObj->IsInserted() && pObj->GetPage() && pObj->GetModel()) + if (pObj->IsInserted() && pObj->GetPage() && pObj->GetModel()) { SdrHint aHint(*pObj); pObj->GetModel()->Broadcast(aHint); } } - ScTabDeletedHint::ScTabDeletedHint( SCTAB nTabNo ) : nTab( nTabNo ) { |