summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-28 13:02:26 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-28 17:06:52 +0100
commit64e742acdb9b0dd9c44bced91766f5ea1aa9de4c (patch)
tree37777b1b197907e7d0748e4ea01bbd7380810b48 /src/gui
parentc44ee963f756cdac87e9ab739fc7e43aab70ad2d (diff)
downloadmana-64e742acdb9b0dd9c44bced91766f5ea1aa9de4c.tar.gz
mana-64e742acdb9b0dd9c44bced91766f5ea1aa9de4c.tar.bz2
mana-64e742acdb9b0dd9c44bced91766f5ea1aa9de4c.tar.xz
mana-64e742acdb9b0dd9c44bced91766f5ea1aa9de4c.zip
Removed a few pointless const qualifiers
Reviewed-by: Jared Adams
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/serverdialog.cpp2
-rw-r--r--src/gui/serverdialog.h2
-rw-r--r--src/gui/textdialog.h7
3 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 3d6c0b6f..e4a765e7 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -391,7 +391,7 @@ void ServerDialog::logic()
Window::logic();
}
-void ServerDialog::setFieldsReadOnly(const bool readOnly)
+void ServerDialog::setFieldsReadOnly(bool readOnly)
{
if (readOnly)
{
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h
index c4af6ab2..ad745187 100644
--- a/src/gui/serverdialog.h
+++ b/src/gui/serverdialog.h
@@ -143,7 +143,7 @@ class ServerDialog : public Window,
static int downloadUpdate(void *ptr, DownloadStatus status,
size_t total, size_t remaining);
- void setFieldsReadOnly(const bool readOnly);
+ void setFieldsReadOnly(bool readOnly);
TextField *mServerNameField;
TextField *mPortField;
diff --git a/src/gui/textdialog.h b/src/gui/textdialog.h
index 6db09e71..825d9ddc 100644
--- a/src/gui/textdialog.h
+++ b/src/gui/textdialog.h
@@ -43,8 +43,7 @@ public:
*/
TextDialog(const std::string &title, const std::string &msg,
Window *parent = NULL);
-
-
+
~TextDialog();
/**
@@ -61,8 +60,8 @@ public:
* Set the OK button action id
*/
void setOKButtonActionId(const std::string &name);
-
- static const bool isActive() { return instances > 0; }
+
+ static bool isActive() { return instances > 0; }
private:
static int instances;