summaryrefslogtreecommitdiff
path: root/src/model/CompetitorWithResults.cpp
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-15 23:27:54 +0200
committerSteru <jerrydream111@gmail.com>2024-08-16 15:59:22 +0200
commit66d5d8685f7dcd45b2e9581315c101e69646cd6f (patch)
tree09376bc9c548ab086118f888653222860098000f /src/model/CompetitorWithResults.cpp
parentb49c066bd5ef8d543a842249881b57eb771ffc94 (diff)
Made Competitor a QObject and tidied up some code.
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;
}