Fixed copy constructor.
authorMikko Keinänen <mikko.keinanen@gmail.com>
Tue, 12 Oct 2010 23:09:05 +0000 (02:09 +0300)
committerMikko Keinänen <mikko.keinanen@gmail.com>
Tue, 12 Oct 2010 23:09:05 +0000 (02:09 +0300)
src/dataobjects/emufrontobject.cpp

index a86ef58..1767bda 100644 (file)
@@ -24,10 +24,8 @@ EmuFrontObject::EmuFrontObject() : id(-1), name("")
 }
 
 EmuFrontObject::EmuFrontObject(const EmuFrontObject &ob)
-    //: QObject(ob) //, id(ob.id), name(ob.name)
+    : QObject() , id(ob.id), name(ob.name)
 {
-    id = ob.id;
-    name = ob.name;
     // no need to perform deep copy here, see:
     // http://doc.trolltech.com/4.0/shclass.html
 }