Commented out debug messages.
[emufront] / src / dataobjects / emufrontobject.cpp
index 977bcc4..d6bee57 100644 (file)
@@ -20,7 +20,9 @@
 #include "emufrontobject.h"
 #include <QDebug>
 
-EmuFrontObject::EmuFrontObject() : id(-1), name("")
+const int EmuFrontObject::ID_NOT_SET = -1;
+
+EmuFrontObject::EmuFrontObject() : id(EmuFrontObject::ID_NOT_SET), name("")
 {
 }
 
@@ -37,7 +39,7 @@ EmuFrontObject::EmuFrontObject(int id, QString name)
 
 EmuFrontObject::~EmuFrontObject()
 {
-    qDebug() << "EmuFrontObject " << name << " dying.";
+    // qDebug() << "EmuFrontObject " << name << " dying.";
 }
 
 EmuFrontObject& EmuFrontObject::operator =(const EmuFrontObject &ob)
@@ -51,7 +53,7 @@ EmuFrontObject& EmuFrontObject::operator =(const EmuFrontObject &ob)
 
 bool EmuFrontObject::operator ==(const EmuFrontObject &sup)
 {
-    return (id >= 0 && id == sup.id && sup.name == name);
+    return (id == sup.id && sup.name == name);
 }
 
 bool EmuFrontObject::operator !=(const EmuFrontObject &sup)