Rename all member functions from p_ to m_

This commit is contained in:
2024-08-23 16:11:49 +02:00
parent b0b3855c6b
commit 864f99a359
16 changed files with 124 additions and 128 deletions
+5 -5
View File
@@ -1,12 +1,12 @@
#include "UI_x_boxes.hpp"
UI_x_boxes::UI_x_boxes(std::string type)
: UI_item(type), p_options()
: UI_item(type), m_options()
{
}
UI_x_boxes::UI_x_boxes(std::string id, std::string type, std::string text, Color fg_color, Color bg_color, std::vector<std::string> options)
: UI_item(id, type, text, 12, fg_color, bg_color), p_options(options)
: UI_item(id, type, text, 12, fg_color, bg_color), m_options(options)
{
}
@@ -15,10 +15,10 @@ void UI_x_boxes::from_json(const json& j)
UI_item::from_json(j);
if (j.contains("options"))
{
this->p_options.clear();
this->m_options.clear();
for (auto option : j["options"])
{
this->p_options.push_back(option);
this->m_options.push_back(option);
}
}
}
@@ -26,6 +26,6 @@ void UI_x_boxes::from_json(const json& j)
json UI_x_boxes::to_json() const
{
json j = UI_item::to_json();
j["options"] = this->p_options;
j["options"] = this->m_options;
return j;
}