diff --git a/src/playingcard.cpp b/src/playingcard.cpp index d47a594..dbb2e8a 100644 --- a/src/playingcard.cpp +++ b/src/playingcard.cpp @@ -1,6 +1,6 @@ #include "playingcard.h" -PlayingCard::PlayingCard(const PlayingCard::Suit& suit, const PlayingCard::Value& value, QObject* parent) : QObject{parent}, m_suit{suit}, m_value{value} {} +PlayingCard::PlayingCard(QObject* parent, const PlayingCard::Suit& suit, const PlayingCard::Value& value) : QObject{parent}, m_suit{suit}, m_value{value} {} PlayingCard::Suit PlayingCard::suit() const { return m_suit; diff --git a/src/playingcard.h b/src/playingcard.h index 8085fad..b9ef68b 100644 --- a/src/playingcard.h +++ b/src/playingcard.h @@ -42,7 +42,7 @@ class PlayingCard : public QObject { Spades, }; - explicit PlayingCard(const Suit& suit = Suit::Clubs, const Value& value = Value::Ace, QObject* parent = nullptr); + explicit PlayingCard(QObject* parent = nullptr, const Suit& suit = Suit::Clubs, const Value& value = Value::Ace); Suit suit() const; QString suitString() const;