Better copy constructor hierarchy
[emufront] / src / dataobjects / setup.cpp
index 3ebc820..8a434de 100644 (file)
@@ -9,19 +9,19 @@
 // the Free Software Foundation, either version 3 of the License, or
 // (at your option) any later version.
 //
-// Foobar is distributed in the hope that it will be useful,
+// EmuFront is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
 //
 // You should have received a copy of the GNU General Public License
-// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+// along with EmuFront.  If not, see <http://www.gnu.org/licenses/>.
 
 #include "setup.h"
 #include "platform.h"
 #include "mediatype.h"
 
-Setup::Setup() : EmuFrontObject()
+Setup::Setup() : EmuFrontObject(), platform(0), mediaType(0)
 {
 }
 
@@ -29,9 +29,9 @@ Setup::Setup(int id, Platform *plf, MediaType *mt, QStringList fileTypeExtension
     : EmuFrontObject(id,
         QString("%1%2")
             .arg(plf ? plf->getName() : "")
-            .arg(mt ? mt->getName() : "")),
-        fileTypeExtensions(fileTypeExtensions)
-{
+            .arg(mt ? mt->getName() : "")), platform(plf), mediaType(mt),
+            fileTypeExtensions(fileTypeExtensions){
+
 }
 
 Setup::~Setup()