diff options
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
| -rw-r--r-- | src/gui/guiFormSpecMenu.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index c01ff817b..d745eab80 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -32,6 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "guiTable.h" #include "network/networkprotocol.h" #include "client/joystick_controller.h" +#include "util/Optional.h" #include "util/string.h" #include "util/enriched_string.h" #include "StyleSpec.h" @@ -352,13 +353,13 @@ protected: video::SColor m_default_tooltip_color; private: - IFormSource *m_form_src; - TextDest *m_text_dst; - std::string m_last_formname; - u16 m_formspec_version = 1; - std::string m_focused_element = ""; - JoystickController *m_joystick; - bool m_show_debug = false; + IFormSource *m_form_src; + TextDest *m_text_dst; + std::string m_last_formname; + u16 m_formspec_version = 1; + Optional<std::string> m_focused_element = nullopt; + JoystickController *m_joystick; + bool m_show_debug = false; struct parserData { bool explicit_size; |
