summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-02-18 00:06:41 +0100
committerMichael Stahl <mstahl@redhat.com>2012-02-18 00:07:31 +0100
commitcdfa3bd5e4c62dc88158a4c6c4908404baf1f529 (patch)
tree64dfd7671d64d74f3370a1403c3e8f9651e7857a /sd
parent29177b1d04b845e8e6bf8edc8beb34b76a95d9c3 (diff)
sd::toolpanel::ScrollPanel::~ScrollPanel: bogus static_cast
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/toolpanel/ScrollPanel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/toolpanel/ScrollPanel.cxx b/sd/source/ui/toolpanel/ScrollPanel.cxx
index 0a84e751f44a..7c43aa473698 100644
--- a/sd/source/ui/toolpanel/ScrollPanel.cxx
+++ b/sd/source/ui/toolpanel/ScrollPanel.cxx
@@ -97,7 +97,7 @@ ScrollPanel::~ScrollPanel (void)
TreeNode* pControl = pNode;
// When the node has been created as TitledControl then use its
// control instead of pNode directly.
- TitledControl* pTitledControl = static_cast<TitledControl*>(pNode);
+ TitledControl* pTitledControl = dynamic_cast<TitledControl*>(pNode);
if (pTitledControl != NULL)
pControl = pTitledControl->GetControl();