summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-29 23:24:39 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-29 23:24:39 +0200
commitf016894763970ad5601d1fb2de10431fb876ff53 (patch)
treeae2ccf42ec3880dc6de6c0f206b4bc4cd095f0a9 /src/gui/widgets
parent5fd5b71ad0be6d1ac5665ec4d5f0aafff25646fd (diff)
downloadMana-f016894763970ad5601d1fb2de10431fb876ff53.tar.gz
Mana-f016894763970ad5601d1fb2de10431fb876ff53.tar.bz2
Mana-f016894763970ad5601d1fb2de10431fb876ff53.tar.xz
Mana-f016894763970ad5601d1fb2de10431fb876ff53.zip
Some random cleanups
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/textbox.cpp2
-rw-r--r--src/gui/widgets/textbox.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp
index 3c05ef84..21c202a3 100644
--- a/src/gui/widgets/textbox.cpp
+++ b/src/gui/widgets/textbox.cpp
@@ -28,7 +28,7 @@
#include <sstream>
TextBox::TextBox() :
- gcn::TextBox(), mTextColor(&guiPalette->getColor(Palette::TEXT))
+ mTextColor(&guiPalette->getColor(Palette::TEXT))
{
setOpaque(false);
setFrameSize(0);
diff --git a/src/gui/widgets/textbox.h b/src/gui/widgets/textbox.h
index 1894e741..37545ed9 100644
--- a/src/gui/widgets/textbox.h
+++ b/src/gui/widgets/textbox.h
@@ -39,7 +39,7 @@ class TextBox : public gcn::TextBox
*/
TextBox();
- inline void setTextColor(const gcn::Color* color)
+ inline void setTextColor(const gcn::Color *color)
{ mTextColor = color; }
/**
@@ -50,7 +50,7 @@ class TextBox : public gcn::TextBox
/**
* Get the minimum text width for the text box.
*/
- int getMinWidth() { return mMinWidth; }
+ int getMinWidth() const { return mMinWidth; }
/**
* Draws the text.
@@ -63,7 +63,7 @@ class TextBox : public gcn::TextBox
private:
int mMinWidth;
- const gcn::Color* mTextColor;
+ const gcn::Color *mTextColor;
};
#endif