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:
parent
aa93173086
commit
99b12001c0
2 changed files with 6 additions and 6 deletions
|
@ -328,6 +328,12 @@ void Toplevel::setOpacity( double new_opacity )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Toplevel::deleteEffectWindow()
|
||||||
|
{
|
||||||
|
delete effect_window;
|
||||||
|
effect_window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
#include "toplevel.moc"
|
#include "toplevel.moc"
|
||||||
|
|
|
@ -394,12 +394,6 @@ inline pid_t Toplevel::pid() const
|
||||||
return info->pid();
|
return info->pid();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void Toplevel::deleteEffectWindow()
|
|
||||||
{
|
|
||||||
delete effect_window;
|
|
||||||
effect_window = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
kdbgstream& operator<<( kdbgstream& stream, const Toplevel* );
|
kdbgstream& operator<<( kdbgstream& stream, const Toplevel* );
|
||||||
kdbgstream& operator<<( kdbgstream& stream, const ToplevelList& );
|
kdbgstream& operator<<( kdbgstream& stream, const ToplevelList& );
|
||||||
kdbgstream& operator<<( kdbgstream& stream, const ConstToplevelList& );
|
kdbgstream& operator<<( kdbgstream& stream, const ConstToplevelList& );
|
||||||
|
|
Loading…
Reference in a new issue