diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/editdialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/editdialog.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/editdialog.cpp b/src/gui/editdialog.cpp index 91d74214d..0926e45b5 100644 --- a/src/gui/editdialog.cpp +++ b/src/gui/editdialog.cpp @@ -33,7 +33,7 @@ #include "debug.h" EditDialog::EditDialog(const std::string &title, const std::string &msg, - std::string eventOk, const int width, + const std::string &eventOk, const int width, Window *const parent, const bool modal): Window(title, modal, parent, "edit.xml"), gcn::ActionListener(), diff --git a/src/gui/editdialog.h b/src/gui/editdialog.h index b23f8feb5..00167bdac 100644 --- a/src/gui/editdialog.h +++ b/src/gui/editdialog.h @@ -48,8 +48,9 @@ class EditDialog final : public Window, public gcn::ActionListener * @see Window::Window */ EditDialog(const std::string &title, const std::string &msg, - std::string eventOk = ACTION_EDIT_OK, const int width = 300, - Window *const parent = nullptr, const bool modal = true); + const std::string &eventOk = ACTION_EDIT_OK, + const int width = 300, Window *const parent = nullptr, + const bool modal = true); A_DELETE_COPY(EditDialog) |