move every from_json over to use at
This commit is contained in:
2024-08-27 17:25:32 +02:00
parent e8f9bc20aa
commit a329fd3f03
4 changed files with 12 additions and 13 deletions
+3 -3
View File
@@ -35,9 +35,9 @@ void UI_slider::from_json(const json& j)
{
UI_item::from_json(j);
this->m_min = j["min"];
this->m_max = j["max"];
this->m_value = j["value"];
this->m_min = j.at("min");
this->m_max = j.at("max");
this->m_value = j.at("value");
}
json UI_slider::to_json() const