mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Fix clazy warning
reference instead of copy
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ void UI_combobox::from_json(const json &j)
|
||||
if (j.contains("options"))
|
||||
{
|
||||
this->m_options.clear();
|
||||
for (auto option : j["options"])
|
||||
for (auto &option : j["options"])
|
||||
{
|
||||
this->m_options.push_back(option);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user