diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-28 20:57:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-29 10:21:25 +0200 |
commit | 7684e31b16408b8a2f36ea2aa733d45bd40f5bc6 (patch) | |
tree | af6314c7ed908f5f1c152c10685c20c06cea46c2 | |
parent | 1f83834bd0d78232762f7467a65ebdf0d4b9f7fa (diff) |
cid#1503287 silence Unchecked dynamic_cast
Change-Id: Id7c6c1ecbfc88c97d5211826fa2d831344dc795c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132245
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 3d9f8f73394c..669234d6bcf7 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -541,6 +541,7 @@ SwNavigationPI::SwNavigationPI(weld::Widget* pParent, m_xContent2Dispatch->GetControllerForCommand(".uno:NavElement"); NavElementToolBoxControl* pToolBoxControl = dynamic_cast<NavElementToolBoxControl*>(xController.get()); + assert(pToolBoxControl); m_pNavigateByComboBox = pToolBoxControl->GetComboBox(); // Restore content tree settings before calling UpdateInitShow. UpdateInitShow calls Fillbox, |