summaryrefslogtreecommitdiff
path: root/src/gui/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-27 21:18:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-27 21:44:17 +0300
commit7c79aa2b8e484319e3e511fa21db6d2448347024 (patch)
tree3c4fb4e72414dd8c0d93401a6bf2cc86b65a34a0 /src/gui/logindialog.cpp
parentde476bb95242e10c833394ef007728072eabe60f (diff)
downloadplus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.gz
plus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.bz2
plus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.xz
plus-7c79aa2b8e484319e3e511fa21db6d2448347024.zip
Add const to more classes.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r--src/gui/logindialog.cpp14
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"),