summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/checkbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/widgets/checkbox.cpp')
-rw-r--r--src/guichan/widgets/checkbox.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/guichan/widgets/checkbox.cpp b/src/guichan/widgets/checkbox.cpp
index 4e76e75d2..da6776d31 100644
--- a/src/guichan/widgets/checkbox.cpp
+++ b/src/guichan/widgets/checkbox.cpp
@@ -62,7 +62,8 @@ namespace gcn
gcn::Widget(),
gcn::MouseListener(),
gcn::KeyListener(),
- mSelected(false)
+ mSelected(false),
+ mCaption()
{
setFocusable(true);
addMouseListener(this);
@@ -73,7 +74,8 @@ namespace gcn
gcn::Widget(),
gcn::MouseListener(),
gcn::KeyListener(),
- mSelected(selected)
+ mSelected(selected),
+ mCaption()
{
setCaption(caption);