summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-12 17:49:24 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 20:22:10 +0100
commitcd347b3b34343d696a3c90352ff91eb64a1057b0 (patch)
tree1006ee8f01803cc2d1f72f1b44dffafc4999d4a0
parent61a1e5934a60586d9385d957c119a1ea5913c0cc (diff)
sw: suppress spurious PVS-Studio V509
Change-Id: If70877bf7d56e3047951a26db8efbfb8e8c22ce3
-rw-r--r--sw/source/core/doc/docbm.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 5d225084ea1c..2efece0373e6 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -842,7 +842,10 @@ namespace sw { namespace mark
{ }
virtual ~LazyFieldmarkDeleter()
{
- dynamic_cast<Fieldmark&>(*m_pFieldmark.get()).ReleaseDoc(m_pDoc);
+ Fieldmark *const pFieldMark(
+ dynamic_cast<Fieldmark*>(m_pFieldmark.get()));
+ assert(pFieldMark);
+ pFieldMark->ReleaseDoc(m_pDoc);
}
};