From ca9fac131283ed536971799bef0d1fff4ef8adc1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Feb 2014 22:21:02 +0300 Subject: Remove useless graphics casts. --- src/gui/widgets/checkbox.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/checkbox.cpp') diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp index e72296516..2f11dc2ce 100644 --- a/src/gui/widgets/checkbox.cpp +++ b/src/gui/widgets/checkbox.cpp @@ -100,9 +100,7 @@ void CheckBox::draw(Graphics *const graphics) drawBox(graphics); gcn::Font *const font = getFont(); - static_cast(graphics)->setColorAll( - mForegroundColor, mForegroundColor2); - + graphics->setColorAll(mForegroundColor, mForegroundColor2); font->drawString(graphics, mCaption, mPadding + mImageSize + mSpacing, mPadding); BLOCK_END("CheckBox::draw") @@ -167,8 +165,9 @@ void CheckBox::drawBox(Graphics *const graphics) if (box) { - static_cast(graphics)->drawImage2( - box, mImagePadding, (getHeight() - mImageSize) / 2); + graphics->drawImage2(box, + mImagePadding, + (getHeight() - mImageSize) / 2); } } -- cgit v1.2.3-60-g2f50