From ecc414fed44c8b0ee63c0acf188a109e3867a815 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 12:45:23 +0300 Subject: change textfield constructor to explicit. --- src/gui/widgets/textfield.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/textfield.h') 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) -- cgit v1.2.3-70-g09d2