From ac51e9e9d85ef6a590b6ed0e4491056b38169d78 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 19:07:18 +0300 Subject: add restrict into gui. --- src/gui/gui.cpp | 3 ++- src/gui/gui.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 2a0c1d641..47a533bf8 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -757,7 +757,8 @@ MouseEvent *Gui::createMouseEvent(Window *const widget) mouseX - x, mouseY - y, mClickCount); } -void Gui::getAbsolutePosition(gcn::Widget *widget, int &x, int &y) +void Gui::getAbsolutePosition(gcn::Widget *restrict widget, + int &restrict x, int &restrict y) { x = 0; y = 0; diff --git a/src/gui/gui.h b/src/gui/gui.h index 7ac546102..b854a43de 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -147,7 +147,8 @@ class Gui final : public gcn::Gui MouseEvent *createMouseEvent(Window *const widget) A_WARN_UNUSED; - void getAbsolutePosition(gcn::Widget *widget, int &x, int &y); + void getAbsolutePosition(gcn::Widget *restrict widget, + int &restrict x, int &restrict y); void addGlobalFocusListener(gcn::FocusListener* focusListener); -- cgit v1.2.3-70-g09d2