From 6c7ba0950a340dd801533d0a557b63da0683fdf7 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 24 Jul 2014 18:00:20 +0200 Subject: [PATCH] Fix warning for DeskList copy constructors Using pointers for classes derived from QObject would be the best idea. --- common/decklist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/decklist.cpp b/common/decklist.cpp index af2f6270..0b2558b5 100644 --- a/common/decklist.cpp +++ b/common/decklist.cpp @@ -355,7 +355,8 @@ DeckList::DeckList() // TODO: http://qt-project.org/doc/qt-4.8/qobject.html#no-copy-constructor-or-assignment-operator DeckList::DeckList(const DeckList &other) - : name(other.name), + : QObject(), + name(other.name), comments(other.comments), deckHash(other.deckHash) {