summaryrefslogtreecommitdiff
path: root/src/model/Competitor.cpp
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-15 19:21:02 +0200
committerOrangerot <purple@orangerot.dev>2024-08-26 11:19:38 +0200
commit87e9d4aa8b64e4a8262115f678febb241f2ac3d0 (patch)
tree7fa90b2e94d96f048b4ddc691ad28608c6eae176 /src/model/Competitor.cpp
parent2aea4f96f5c2daf6ca0d237ca2288c6a767cdeeb (diff)
Added Q Object macros.
Diffstat (limited to 'src/model/Competitor.cpp')
-rw-r--r--src/model/Competitor.cpp2
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;