summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-13 17:57:32 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-13 17:57:32 +0300
commitc4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf (patch)
tree37b78a9b847d938b5a34acf2f000fef3f31eef44 /src/gui/windows
parent1302ad311b666459c4de36420af09c2a1e7867d0 (diff)
downloadplus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.gz
plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.bz2
plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.xz
plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.zip
Add missing const references to constructor parameters.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/worldselectdialog.cpp2
-rw-r--r--src/gui/windows/worldselectdialog.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/worldselectdialog.cpp b/src/gui/windows/worldselectdialog.cpp
index a80c56085..919440a40 100644
--- a/src/gui/windows/worldselectdialog.cpp
+++ b/src/gui/windows/worldselectdialog.cpp
@@ -42,7 +42,7 @@
extern WorldInfo **server_info;
-WorldSelectDialog::WorldSelectDialog(Worlds worlds) :
+WorldSelectDialog::WorldSelectDialog(const Worlds &worlds) :
// TRANSLATORS: world select dialog name
Window(_("Select World"), Modal_false, nullptr, "world.xml"),
ActionListener(),
diff --git a/src/gui/windows/worldselectdialog.h b/src/gui/windows/worldselectdialog.h
index 6d31d2a53..4c6dc0f8c 100644
--- a/src/gui/windows/worldselectdialog.h
+++ b/src/gui/windows/worldselectdialog.h
@@ -49,7 +49,7 @@ class WorldSelectDialog final : public Window,
*
* @see Window::Window
*/
- explicit WorldSelectDialog(Worlds worlds);
+ explicit WorldSelectDialog(const Worlds &worlds);
A_DELETE_COPY(WorldSelectDialog)