Don't delete a forward-declared class, since that won't run the

destructor.

Which means move this inline code to non-inline in the .cpp, after the
class has been declared.

svn path=/trunk/KDE/kdebase/workspace/; revision=811618
This commit is contained in:
Thiago Macieira 2008-05-23 14:41:27 +00:00
parent aa93173086
commit 99b12001c0
2 changed files with 6 additions and 6 deletions

View file

@ -328,6 +328,12 @@ void Toplevel::setOpacity( double new_opacity )
}
}
void Toplevel::deleteEffectWindow()
{
delete effect_window;
effect_window = NULL;
}
} // namespace
#include "toplevel.moc"

View file

@ -394,12 +394,6 @@ inline pid_t Toplevel::pid() const
return info->pid();
}
inline void Toplevel::deleteEffectWindow()
{
delete effect_window;
effect_window = NULL;
}
kdbgstream& operator<<( kdbgstream& stream, const Toplevel* );
kdbgstream& operator<<( kdbgstream& stream, const ToplevelList& );
kdbgstream& operator<<( kdbgstream& stream, const ConstToplevelList& );