[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    kpopupmenu.cpp patch
From:       jbb <jbb () kdevelop ! org>
Date:       2002-02-02 8:45:29
[Download RAW message or body]

Hi,

If the constructor marked as obsolete is used your program will crash as the d 
pointer is uninitialised. Unfortunately, kdevelop is still using this 
constructor.
Attached patch fixes this.

jbb

["kpopupmenu.diff" (text/x-diff)]

Index: kpopupmenu.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kpopupmenu.cpp,v
retrieving revision 1.15
diff -u -r1.15 kpopupmenu.cpp
--- kpopupmenu.cpp	2002/01/22 11:41:16	1.15
+++ kpopupmenu.cpp	2002/02/02 08:30:51
@@ -268,6 +268,7 @@
 KPopupMenu::KPopupMenu(const QString& title, QWidget *parent, const char *name)
     : QPopupMenu(parent, name)
 {
+    d = new KPopupMenuPrivate;
     setTitle(title);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic