From f540d735b639386b2753f5c2aede844b8dad5df8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Feb 2012 23:52:44 +0300 Subject: Fix code style. --- src/gui/widgets/button.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index b430dfebb..c99f46149 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -229,7 +229,7 @@ Button::~Button() if (mImages) { for (int f = 0; f < BUTTON_COUNT; f ++) - mImages[f] = 0; + mImages[f] = nullptr; delete [] mImages; mImages = nullptr; } @@ -366,7 +366,6 @@ void Button::draw(gcn::Graphics *graphics) case gcn::Graphics::CENTER: if (mImages) { - textX = getWidth() / 2; int width = getFont()->getWidth(mCaption) + mImageWidth + 2; imageX = getWidth() / 2 - width / 2; textX = imageX + mImageWidth + 2; -- cgit v1.2.3-70-g09d2