diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-16 20:37:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-17 14:46:26 +0100 |
commit | 9facb8271d9e87b33e7280f400d19bea3c326eea (patch) | |
tree | b059b06185e4770ee2bdc578151af5dd33840d0d /chart2 | |
parent | ffbb27d0d7bfd4fa2b297959385e9b3cee0b30da (diff) |
coverity#1327446 Unchecked dynamic_cast
Change-Id: Ib409b7fe4244b89f8767b20adcfae060f121b2f2
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index d6674cfc7da9..72fea5fc06dd 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -814,9 +814,8 @@ void SAL_CALL ChartController::dispose() if (getModel().is()) { uno::Reference<ui::XSidebar> xSidebar = getSidebarFromModel(getModel()); - if (xSidebar.is()) + if (sfx2::sidebar::SidebarController* pSidebar = dynamic_cast<sfx2::sidebar::SidebarController*>(xSidebar.get())) { - sfx2::sidebar::SidebarController* pSidebar = dynamic_cast<sfx2::sidebar::SidebarController*>(xSidebar.get()); sfx2::sidebar::SidebarController::unregisterSidebarForFrame(pSidebar, this); } } |