diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-02-18 00:06:41 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-20 17:15:26 +0000 |
commit | 1d70aa26a5da2fd5857b017f66df97625537ebf0 (patch) | |
tree | 3b7f47be199b7ee0e67be38b641404107cde74d3 | |
parent | 336b75a4070bbc69673cca81946c36bed1b97892 (diff) |
sd::toolpanel::ScrollPanel::~ScrollPanel: bogus static_cast
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
-rw-r--r-- | sd/source/ui/toolpanel/ScrollPanel.cxx | 2 |
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(); |