From c8ec9f8058e21bfcf40e1cb19565e7a1cf67e9d4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 22:48:21 +0300 Subject: add restrict into okdialog. --- src/gui/windows/okdialog.cpp | 3 ++- src/gui/windows/okdialog.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/okdialog.cpp b/src/gui/windows/okdialog.cpp index 99c908563..93739ba26 100644 --- a/src/gui/windows/okdialog.cpp +++ b/src/gui/windows/okdialog.cpp @@ -34,7 +34,8 @@ #include "debug.h" -OkDialog::OkDialog(const std::string &title, const std::string &msg, +OkDialog::OkDialog(const std::string &restrict title, + const std::string &restrict msg, const int soundEvent, const bool modal, const bool showCenter, Window *const parent, const int minWidth) : diff --git a/src/gui/windows/okdialog.h b/src/gui/windows/okdialog.h index f12100b9b..c33400c34 100644 --- a/src/gui/windows/okdialog.h +++ b/src/gui/windows/okdialog.h @@ -52,7 +52,8 @@ class OkDialog final : public Window, * * @see Window::Window */ - OkDialog(const std::string &title, const std::string &msg, + OkDialog(const std::string &restrict title, + const std::string &restrict msg, const int soundEvent = DIALOG_OK, const bool modal = true, const bool showCenter = true, Window *const parent = nullptr, const int minWidth = 260); -- cgit v1.2.3-60-g2f50