From 206ff25a1a396e163a55155d964d02e69fc3dc89 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 6 Dec 2024 04:33:29 +0100 Subject: [PATCH] Make parent the first arg in PlayingCard constructor --- src/playingcard.cpp | 2 +- src/playingcard.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;