Commit 9e4fa785 authored by Scott Wheeler's avatar Scott Wheeler

I'm told this is safer. See the comment.

svn path=/trunk/kdemultimedia/juk/; revision=229525
parent f9d4ad55
......@@ -172,8 +172,13 @@ void SystemTray::wheelEvent(QWheelEvent *e)
{
if(e->orientation() == Horizontal)
return;
JuKIface *juk = reinterpret_cast<JuKIface *>(parent());
// I already know the type here, but this file doesn't (and I don't want it
// to) know about the JuK class, so a static_cast won't work, and I was told
// that a reinterpret_cast isn't portable when combined with multiple
// inheritance.
JuKIface *juk = dynamic_cast<JuKIface *>(parent());
switch(e->state()) {
case ShiftButton:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment