summaryrefslogtreecommitdiff
path: root/src/model/CompetitorWithResults.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/CompetitorWithResults.cpp')
-rw-r--r--src/model/CompetitorWithResults.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/CompetitorWithResults.cpp b/src/model/CompetitorWithResults.cpp
index 1601a4a..9dbd615 100644
--- a/src/model/CompetitorWithResults.cpp
+++ b/src/model/CompetitorWithResults.cpp
@@ -8,13 +8,13 @@
* @return True, if successful.
*/
bool CompetitorWithResults::setResults(const QJsonObject &results) {
- if (!results.contains("mark")
- || !results.contains("medalType")) {
+ if (!results.contains("m_mark")
+ || !results.contains("m_medalType")) {
throw invalid_argument("Results object of competitor is incomplete.");
}
- this->mark = results["mark"].toString();
- this->medalType = results["medalType"].toString();
+ this->m_mark = results["m_mark"].toString();
+ this->m_medalType = results["m_medalType"].toString();
return true;
}