diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 20:05:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 21:06:00 +0100 |
commit | 82335d982a66da64ada19b0ed72d8d12c95360e0 (patch) | |
tree | e0a9ee71c9d0046807201edaf6a08786f608f471 /sw | |
parent | 0a49132cd064272442ca7500476e2346dc0aa4cd (diff) |
coverity#736844 Dereference before null check
Change-Id: I37e02d92590d7ac480b831a347bb9902febb8805
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/section.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx index 6ef9a0d604f6..4fea5d7e84ec 100644 --- a/sw/source/core/docnode/section.cxx +++ b/sw/source/core/docnode/section.cxx @@ -620,7 +620,7 @@ const SwTOXBase* SwSection::GetTOXBase() const { const SwTOXBase* pRet = 0; if( TOX_CONTENT_SECTION == GetType() ) - pRet = PTR_CAST( SwTOXBaseSection, this ); + pRet = dynamic_cast<const SwTOXBaseSection*>(this); return pRet; } |