summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-18 12:33:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-19 09:38:40 +0200
commit6d86d5ff4a3a90462980eb5b2d392af7ee78bfc4 (patch)
tree9f4ea07c088cb904d524532086dd1b3b676db0a4 /sw
parent0628e615f0c2471d58f3e61ca868eaff6f95711f (diff)
cid#1451638 Unchecked dynamic_cast
Change-Id: Ia0fc1ffdd5dbed4b7c32587741d59dcf2782ed61 Reviewed-on: https://gerrit.libreoffice.org/75920 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docbm.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 883be228142e..ecd9b2774937 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -1348,9 +1348,9 @@ namespace sw { namespace mark
{
if (m_pLastActiveFieldmark != pFieldBM)
{
- auto pFormField = dynamic_cast<FieldmarkWithDropDownButton*>(pFieldBM);
- pFormField->ShowButton(&rEditWin);
- pNewActiveFieldmark = pFormField;
+ FieldmarkWithDropDownButton& rFormField = dynamic_cast<FieldmarkWithDropDownButton&>(*pFieldBM);
+ rFormField.ShowButton(&rEditWin);
+ pNewActiveFieldmark = &rFormField;
}
else
{