diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-28 23:52:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-28 23:52:44 +0300 |
commit | f540d735b639386b2753f5c2aede844b8dad5df8 (patch) | |
tree | 2dc1e339c56c5b67e2b66a346e6a594a3e384679 /src/gui | |
parent | 16a5f224128acde7343c53c636ff53e7983ef754 (diff) | |
download | manaplus-f540d735b639386b2753f5c2aede844b8dad5df8.tar.gz manaplus-f540d735b639386b2753f5c2aede844b8dad5df8.tar.bz2 manaplus-f540d735b639386b2753f5c2aede844b8dad5df8.tar.xz manaplus-f540d735b639386b2753f5c2aede844b8dad5df8.zip |
Fix code style.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/button.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; |