From de476bb95242e10c833394ef007728072eabe60f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Aug 2012 01:27:11 +0300 Subject: Add const to more classes. --- src/gui/connectiondialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/connectiondialog.cpp') diff --git a/src/gui/connectiondialog.cpp b/src/gui/connectiondialog.cpp index b5357d83c..872f8ad76 100644 --- a/src/gui/connectiondialog.cpp +++ b/src/gui/connectiondialog.cpp @@ -34,7 +34,7 @@ #include "debug.h" ConnectionDialog::ConnectionDialog(const std::string &text, - State cancelState): + const State cancelState): Window(""), mCancelState(cancelState) { @@ -42,9 +42,9 @@ ConnectionDialog::ConnectionDialog(const std::string &text, setMovable(false); setMinWidth(0); - ProgressIndicator *progressIndicator = new ProgressIndicator; - gcn::Label *label = new Label(text); - Button *cancelButton = new Button(_("Cancel"), "cancelButton", this); + ProgressIndicator *const progressIndicator = new ProgressIndicator; + gcn::Label *const label = new Label(text); + Button *const cancelButton = new Button(_("Cancel"), "cancelButton", this); place(0, 0, progressIndicator); place(0, 1, label); -- cgit v1.2.3-70-g09d2