[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Feb 12 14:34:41 UTC 2021
sw/source/core/doc/docbm.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit ccec133b9021b07d16cdec6b6ad860e0a62648af
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Feb 12 10:44:42 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Feb 12 15:33:57 2021 +0100
cid#1472878 silence Unchecked dynamic_cast
Change-Id: I5c2661ff6040225d32fcdc32b1e00650f9b4e058
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110807
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index a62c371377f4..7adb634b281b 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -1537,9 +1537,10 @@ namespace sw::mark
if (m_pLastActiveFieldmark)
{
- if (m_pLastActiveFieldmark->GetFieldname() == ODF_FORMDROPDOWN)
+ if (auto pDrowDown = m_pLastActiveFieldmark->GetFieldname() == ODF_FORMDROPDOWN ?
+ dynamic_cast<::sw::mark::DropDownFieldmark*>(m_pLastActiveFieldmark) :
+ nullptr)
{
- auto pDrowDown = dynamic_cast<::sw::mark::DropDownFieldmark*>(m_pLastActiveFieldmark);
pDrowDown->SendLOKShowMessage(pViewShell);
}
}
More information about the Libreoffice-commits
mailing list