From 04ac16fc83719870bdad57eff409dc5db9502fe0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 19:22:29 +0300 Subject: add restrict into windowmenu. --- src/gui/windowmenu.cpp | 2 +- src/gui/windowmenu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 332843a86..b69c624fa 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -231,7 +231,7 @@ void WindowMenu::action(const gcn::ActionEvent &event) void WindowMenu::addButton(const char *const text, const std::string &description, - int &x, int &h, const int key, + int &restrict x, int &restrict h, const int key, const bool visible) { Button *const btn = new Button(this, gettext(text), text, this); diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h index 2fbd3a0c8..d66ccd184 100644 --- a/src/gui/windowmenu.h +++ b/src/gui/windowmenu.h @@ -123,7 +123,7 @@ class WindowMenu final : public Container, private: inline void addButton(const char *const text, const std::string &description, - int &x, int &h, const int key, + int &restrict x, int &restrict h, const int key, const bool visible = true); void updateButtons(); -- cgit v1.2.3-70-g09d2