diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-26 18:24:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-27 09:56:48 +0200 |
commit | 75c642dae3ded5bcf6d48f81363ad918d101d2e5 (patch) | |
tree | 2c961c89327b96a17f4ea92749df961f88c66210 /sd | |
parent | c15ac2c2ce71e35fd026109231444f5fb5745851 (diff) |
coverity#1420317 Unchecked dynamic_cast
Change-Id: I33d065780ece2aab5f5a07d0dfd5493005a22b33
Reviewed-on: https://gerrit.libreoffice.org/43917
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 5a5d785f79d7..3b7f2346e219 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -325,9 +325,9 @@ public: for (editeng::Section const & rSection : aSections) { const SvxFieldItem* pFieldItem = findField(rSection); - if (pFieldItem) + const editeng::CustomPropertyField* pCustomPropertyField = pFieldItem ? dynamic_cast<const editeng::CustomPropertyField*>(pFieldItem->GetField()) : nullptr; + if (pCustomPropertyField) { - const auto* pCustomPropertyField = dynamic_cast<const editeng::CustomPropertyField*>(pFieldItem->GetField()); OUString aKey = pCustomPropertyField->GetKey(); if (aKey.startsWith(sPolicy + "Marking:Text:")) { |