summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
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