diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-19 12:45:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:22 +0300 |
commit | ecc414fed44c8b0ee63c0acf188a109e3867a815 (patch) | |
tree | d208560d5d2818f31e69e62cc4401fed8c7f25bd /src/gui | |
parent | d5bd11b08e4c49a22b40834c0607e3c9927aecd1 (diff) | |
download | manaverse-ecc414fed44c8b0ee63c0acf188a109e3867a815.tar.gz manaverse-ecc414fed44c8b0ee63c0acf188a109e3867a815.tar.bz2 manaverse-ecc414fed44c8b0ee63c0acf188a109e3867a815.tar.xz manaverse-ecc414fed44c8b0ee63c0acf188a109e3867a815.zip |
change textfield constructor to explicit.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/textfield.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h index eaecf41e7..cbbe51562 100644 --- a/src/gui/widgets/textfield.h +++ b/src/gui/widgets/textfield.h @@ -45,12 +45,12 @@ class TextField : public gcn::TextField, /** * Constructor, initializes the text field with the given string. */ - TextField(const Widget2 *const widget, - const std::string &text = "", - const bool loseFocusOnTab = true, - gcn::ActionListener *const listener = nullptr, - const std::string &eventId = "", - const bool sendAlwaysEvents = false); + explicit TextField(const Widget2 *const widget, + const std::string &text = "", + const bool loseFocusOnTab = true, + gcn::ActionListener *const listener = nullptr, + const std::string &eventId = "", + const bool sendAlwaysEvents = false); A_DELETE_COPY(TextField) |