Fix warning for DeskList copy constructors
Using pointers for classes derived from QObject would be the best idea.
This commit is contained in:
parent
036980eb44
commit
6c7ba0950a
1 changed files with 2 additions and 1 deletions
|
@ -355,7 +355,8 @@ DeckList::DeckList()
|
||||||
|
|
||||||
// TODO: http://qt-project.org/doc/qt-4.8/qobject.html#no-copy-constructor-or-assignment-operator
|
// TODO: http://qt-project.org/doc/qt-4.8/qobject.html#no-copy-constructor-or-assignment-operator
|
||||||
DeckList::DeckList(const DeckList &other)
|
DeckList::DeckList(const DeckList &other)
|
||||||
: name(other.name),
|
: QObject(),
|
||||||
|
name(other.name),
|
||||||
comments(other.comments),
|
comments(other.comments),
|
||||||
deckHash(other.deckHash)
|
deckHash(other.deckHash)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue