[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Mar 14 21:23:08 CET 2005


CVS commit by staikos: 

add d pointer implementation and two variables for use in the update reworking


  M +24 -2     kstobject.cpp   1.13


--- kdeextragear-2/kst/kst/kstobject.cpp  #1.12:1.13
@@ -18,6 +18,18 @@
 #include "kstobject.h"
 
+class KstObjectPrivate {
+  public:
+    KstObjectPrivate() {
+      _dirty = false;
+      _lastUpdate = KstObject::NO_CHANGE;
+    }
+
+    bool _dirty;
+    KstObject::UpdateType _lastUpdate;
+};
+
+
 KstObject::KstObject()
-: KstShared(), QObject(), KstRWLock(), _lastUpdateCounter(0) {
+: KstShared(), QObject(), KstRWLock(), _lastUpdateCounter(0), d(new KstObjectPrivate) {
 }
 
@@ -22,5 +34,8 @@ KstObject::KstObject()
 }
 
+
 KstObject::~KstObject() {
+  delete d;
+  d = 0L;
 }
 




More information about the Kst mailing list