diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-27 21:18:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-27 21:44:17 +0300 |
commit | 7c79aa2b8e484319e3e511fa21db6d2448347024 (patch) | |
tree | 3c4fb4e72414dd8c0d93401a6bf2cc86b65a34a0 /src/gui/logindialog.cpp | |
parent | de476bb95242e10c833394ef007728072eabe60f (diff) | |
download | manaplus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.gz manaplus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.bz2 manaplus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.xz manaplus-7c79aa2b8e484319e3e511fa21db6d2448347024.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r-- | src/gui/logindialog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index 804a46bad..e105911e8 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -80,7 +80,7 @@ public: class UpdateListModel : public gcn::ListModel { public: - UpdateListModel(LoginData *data) : + UpdateListModel(LoginData *const data) : gcn::ListModel(), mLoginData(data) { @@ -107,18 +107,18 @@ class UpdateListModel : public gcn::ListModel LoginData *mLoginData; }; -LoginDialog::LoginDialog(LoginData *data, std::string serverName, - std::string *updateHost): +LoginDialog::LoginDialog(LoginData *const data, std::string serverName, + std::string *const updateHost): Window(_("Login"), false, nullptr, "login.xml"), mLoginData(data), mUpdateHost(updateHost), mServerName(serverName) { - gcn::Label *serverLabel1 = new Label(_("Server:")); - gcn::Label *serverLabel2 = new Label(serverName); + gcn::Label *const serverLabel1 = new Label(_("Server:")); + gcn::Label *const serverLabel2 = new Label(serverName); serverLabel2->adjustSize(); - gcn::Label *userLabel = new Label(_("Name:")); - gcn::Label *passLabel = new Label(_("Password:")); + gcn::Label *const userLabel = new Label(_("Name:")); + gcn::Label *const passLabel = new Label(_("Password:")); if (mLoginData && mLoginData->updateHosts.size() > 1) { mUpdateHostLabel = new Label(strprintf(_("Update host: %s"), |