From 99b12001c0fad82d282984a3e6ba3aa1987ed486 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 23 May 2008 14:41:27 +0000 Subject: [PATCH] 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 --- toplevel.cpp | 6 ++++++ toplevel.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/toplevel.cpp b/toplevel.cpp index cdf72cdc72..591e9765b6 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -328,6 +328,12 @@ void Toplevel::setOpacity( double new_opacity ) } } +void Toplevel::deleteEffectWindow() + { + delete effect_window; + effect_window = NULL; + } + } // namespace #include "toplevel.moc" diff --git a/toplevel.h b/toplevel.h index 3675e82a66..7ece371200 100644 --- a/toplevel.h +++ b/toplevel.h @@ -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& );