Still experimenting with unit testing code.
[emufront] / src / dataobjects / platform.cpp
index 8be339d..490a349 100644 (file)
@@ -18,6 +18,7 @@
 // along with EmuFront.  If not, see <http://www.gnu.org/licenses/>.
 
 #include "platform.h"
+#include <QDebug>
 
 Platform::Platform() : EmuFrontFileObject() { }
 
@@ -34,3 +35,12 @@ Platform::Platform(const Platform &p)
 {
 }
 
+Platform::~Platform()
+{
+    if (file) {
+        qDebug() << "file: " << file->getName();
+    }
+    qDebug() << "Platform " << name << " @ "
+        << this << "dying.";
+}
+