summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/doctxm.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-19 11:13:20 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-19 15:37:53 +0000
commit888287c45b5af50d6e8f0558957c6b34bc4c9e1d (patch)
tree55d84bdbb5ebc3cb73f3032e9df7e5ddb1f7bef5 /sw/source/core/doc/doctxm.cxx
parentf1287b9b25bd87d9bcd7fec7f735aeaedb5849c4 (diff)
coverity#704872 Dereference after null check
Change-Id: I83b2335ffe215c36d5d69bec7489f8f025d6b930
Diffstat (limited to 'sw/source/core/doc/doctxm.cxx')
-rw-r--r--sw/source/core/doc/doctxm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 486a597cf31e..9b3cc25d4b95 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -767,9 +767,9 @@ void SwTOXBaseSection::Update(const SfxItemSet* pAttr,
SwDoc* pDoc = (SwDoc*)pSectNd->GetDoc();
- OSL_ENSURE(pDoc != NULL, "Where is the document?");
+ assert(pDoc); //Where is the document?
- if(pAttr && pDoc && GetFmt())
+ if (pAttr && GetFmt())
pDoc->ChgFmt(*GetFmt(), *pAttr);
// determine default page description, which will be used by the content nodes,