summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-17 20:49:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-17 20:49:19 +0300
commit850b3b515d7b35cfec8708190f2f6631cd4faae4 (patch)
treed678b506515b402de4345696e90a76eaa3704bc3 /src/gui
parent0ba77bd91da2acb4fbe2ac8aff58c0ac3f43786c (diff)
downloadmanaplus-850b3b515d7b35cfec8708190f2f6631cd4faae4.tar.gz
manaplus-850b3b515d7b35cfec8708190f2f6631cd4faae4.tar.bz2
manaplus-850b3b515d7b35cfec8708190f2f6631cd4faae4.tar.xz
manaplus-850b3b515d7b35cfec8708190f2f6631cd4faae4.zip
add restrict into textfield.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/textfield.cpp9
-rw-r--r--src/gui/widgets/textfield.h9
2 files changed, 10 insertions, 8 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 8d15108b5..f176b08fa 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -53,10 +53,11 @@ int TextField::instances = 0;
float TextField::mAlpha = 1.0;
ImageRect TextField::skin;
-TextField::TextField(const Widget2 *const widget,
- const std::string &text, const bool loseFocusOnTab,
- gcn::ActionListener *const listener,
- const std::string &eventId,
+TextField::TextField(const Widget2 *restrict const widget,
+ const std::string &restrict text,
+ const bool loseFocusOnTab,
+ gcn::ActionListener *restrict const listener,
+ const std::string &restrict eventId,
const bool sendAlwaysEvents):
gcn::TextField(text),
gcn::FocusListener(),
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h
index 3942d610a..6ee427147 100644
--- a/src/gui/widgets/textfield.h
+++ b/src/gui/widgets/textfield.h
@@ -45,11 +45,12 @@ class TextField : public gcn::TextField,
/**
* Constructor, initializes the text field with the given string.
*/
- explicit TextField(const Widget2 *const widget,
- const std::string &text = "",
+ explicit TextField(const Widget2 *restrict const widget,
+ const std::string &restrict text = "",
const bool loseFocusOnTab = true,
- gcn::ActionListener *const listener = nullptr,
- const std::string &eventId = "",
+ gcn::ActionListener *restrict
+ const listener = nullptr,
+ const std::string &restrict eventId = "",
const bool sendAlwaysEvents = false);
A_DELETE_COPY(TextField)