diff options
author | Steru <jerrydream111@gmail.com> | 2024-08-15 19:21:02 +0200 |
---|---|---|
committer | Steru <jerrydream111@gmail.com> | 2024-08-16 23:50:34 +0200 |
commit | 70d5f014e50b9255dcb5c36122a109cc049c8936 (patch) | |
tree | f14ab291bec1a27457166ab1c4e0e70920b2ffa9 /src/model/Competitor.cpp | |
parent | 173ce00cf29822294137d3ebacc5b33ad01a3d25 (diff) |
Added Q Object macros.
Diffstat (limited to 'src/model/Competitor.cpp')
-rw-r--r-- | src/model/Competitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/Competitor.cpp b/src/model/Competitor.cpp index a5d2e69..d39d134 100644 --- a/src/model/Competitor.cpp +++ b/src/model/Competitor.cpp @@ -8,7 +8,7 @@ bool Competitor::setCompetitor(const QJsonObject &competitor) { throw invalid_argument("Not a competitor object."); } - this->code = competitor["code"].toString(); + this->code = competitor["code"].toInt(); this->name = competitor["name"].toString(); this->noc = competitor["noc"].toString(); return true; |