summaryrefslogtreecommitdiff
path: root/src/model/Competitor.cpp
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-15 19:21:02 +0200
committerSteru <jerrydream111@gmail.com>2024-08-16 15:48:53 +0200
commit5f4431e19c0b6c50c7f24ce040bcbcdd40b7a13c (patch)
treea769254e53716ca2c0a1fde64b2842bc3a6bac13 /src/model/Competitor.cpp
parent3d19fd72716561a0322ba0acc5c94aac9f161e9d (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;