[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri May 16 08:33:31 CEST 2003
CVS commit by staikos:
- missed a constructor initialisation
- add debug statements to show that refcounting is working
M +5 -1 kstplugin.cpp 1.3
M +4 -0 plugin.cpp 1.9
--- kdeextragear-2/kst/kst/kstplugin.cpp #1.2:1.3
@@ -17,4 +17,5 @@
#include "kstplugin.h"
+#include <kdebug.h>
@@ -25,5 +26,6 @@ KstPlugin::KstPlugin()
-KstPlugin::KstPlugin(QDomElement &e, const KstVectorList& vectors, const KstScalarList& scalars) {
+KstPlugin::KstPlugin(QDomElement &e, const KstVectorList& vectors, const KstScalarList& scalars)
+: KShared() {
commonConstructor();
Q_UNUSED(e);
@@ -37,8 +39,10 @@ void KstPlugin::commonConstructor() {
_tag = QString::null;
_plugin = 0L;
+ kdDebug() << "Creating KSTPlugin: " << long(this) << endl;
}
KstPlugin::~KstPlugin() {
+ kdDebug() << "Destroying KSTPlugin: " << long(this) << endl;
}
--- kdeextragear-2/kst/kst/plugin.cpp #1.8:1.9
@@ -20,4 +20,5 @@
#include <klibloader.h>
+#include <kdebug.h>
@@ -27,4 +28,5 @@ Plugin::Plugin() : KShared() {
_lib = 0L;
_symbol = 0L;
+ kdDebug() << "Creating Plugin: " << long(this) << endl;
}
@@ -37,4 +39,6 @@ Plugin::~Plugin() {
_lib = 0L;
}
+
+ kdDebug() << "Destroying Plugin: " << long(this) << endl;
}
More information about the Kst
mailing list