summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 12:45:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:22 +0300
commitecc414fed44c8b0ee63c0acf188a109e3867a815 (patch)
treed208560d5d2818f31e69e62cc4401fed8c7f25bd /src
parentd5bd11b08e4c49a22b40834c0607e3c9927aecd1 (diff)
downloadManaVerse-ecc414fed44c8b0ee63c0acf188a109e3867a815.tar.gz
ManaVerse-ecc414fed44c8b0ee63c0acf188a109e3867a815.tar.bz2
ManaVerse-ecc414fed44c8b0ee63c0acf188a109e3867a815.tar.xz
ManaVerse-ecc414fed44c8b0ee63c0acf188a109e3867a815.zip
change textfield constructor to explicit.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/textfield.h12
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)