diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-07-15 18:18:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-07-15 22:09:09 +0200 |
commit | c7911e7d6aac471018c69942256e4c9566c2183f (patch) | |
tree | 315b745a9878df2cadedca8a0fe738b18d993d2e /vcl/unx/gtk3 | |
parent | 0f84be3e0d26cf82af14bb07c71074c913cacbd7 (diff) |
coverity#1437953 Unchecked dynamic_cast
Change-Id: I7f9e000cb47206444c4bda0896f56d220d86f04b
Reviewed-on: https://gerrit.libreoffice.org/57456
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 4d1c42f7f1dd..40e43df22ae0 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -3133,6 +3133,7 @@ public: virtual void set_popover(weld::Widget* pPopover) override { GtkInstanceWidget* pPopoverWidget = dynamic_cast<GtkInstanceWidget*>(pPopover); + assert(pPopoverWidget); m_pPopover = pPopoverWidget->getWidget(); if (m_pMenuHack) { |