From 02ee984b9d0de9840af7aa60164041cb066674bd Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 8 Jul 2011 19:50:21 +0000 Subject: Fix Bug #456 On newer gcc/libstdc/glibc systems virtual base objects are not actually allocated, causing a crash when assigning to data members of the virtual base object. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1240474 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdesktop/KBackgroundIface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kdesktop/KBackgroundIface.h') diff --git a/kdesktop/KBackgroundIface.h b/kdesktop/KBackgroundIface.h index 47818021a..0753b54aa 100644 --- a/kdesktop/KBackgroundIface.h +++ b/kdesktop/KBackgroundIface.h @@ -8,11 +8,13 @@ #include #include -class KBackgroundIface : virtual public DCOPObject +class KBackgroundIface : public DCOPObject { K_DCOP public: + KBackgroundIface() : DCOPObject("KBackgroundIface") {} + k_dcop: /** Reread the configuration */ virtual void configure() = 0; -- cgit v1.2.1