File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 20
20
#include " util/gettext.hpp"
21
21
22
22
StringArrayMenu::StringArrayMenu (std::vector<std::string>* items) :
23
- m_items (items),
23
+ m_array_items (items),
24
24
m_text()
25
25
{
26
26
reload ();
@@ -32,12 +32,12 @@ StringArrayMenu::menu_action(MenuItem& item)
32
32
int id = item.get_id ();
33
33
if (id >= 0 )
34
34
{
35
- m_items ->erase (m_items ->begin () + id);
35
+ m_array_items ->erase (m_array_items ->begin () + id);
36
36
reload ();
37
37
}
38
38
else if (id == -2 && m_text.length () > 0 )
39
39
{
40
- m_items ->push_back (m_text);
40
+ m_array_items ->push_back (m_text);
41
41
m_text = " " ;
42
42
reload ();
43
43
}
@@ -49,9 +49,9 @@ StringArrayMenu::reload()
49
49
clear ();
50
50
add_label (_ (" Edit string array" ));
51
51
add_hl ();
52
- for (unsigned int i = 0 ; i < m_items ->size (); i++)
52
+ for (unsigned int i = 0 ; i < m_array_items ->size (); i++)
53
53
{
54
- add_entry (i, m_items ->at (i));
54
+ add_entry (i, m_array_items ->at (i));
55
55
}
56
56
add_hl ();
57
57
add_textfield (_ (" Text" ), &m_text);
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class StringArrayMenu final : public Menu
28
28
29
29
virtual void menu_action (MenuItem& item) override ;
30
30
private:
31
- std::vector<std::string>* m_items ;
31
+ std::vector<std::string>* m_array_items ;
32
32
std::string m_text;
33
33
34
34
void reload ();
You can’t perform that action at this time.
0 commit comments