From 7b155f111daf5d7ae477b16d0f0789b1113bea74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jun 2012 00:04:33 +0300 Subject: Fix some issues after auto checking. --- src/guichan/widgets/label.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/guichan/widgets/label.cpp') diff --git a/src/guichan/widgets/label.cpp b/src/guichan/widgets/label.cpp index 03ca04576..3e0eecb3c 100644 --- a/src/guichan/widgets/label.cpp +++ b/src/guichan/widgets/label.cpp @@ -56,16 +56,14 @@ namespace gcn { - Label::Label() + Label::Label() : mAlignment(Graphics::LEFT) { - mAlignment = Graphics::LEFT; } - Label::Label(const std::string& caption) + Label::Label(const std::string& caption) : + mCaption(caption), + mAlignment(Graphics::LEFT) { - mCaption = caption; - mAlignment = Graphics::LEFT; - setWidth(getFont()->getWidth(caption)); setHeight(getFont()->getHeight()); } -- cgit v1.2.3-60-g2f50