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/emotepage.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/emotepage.cpp') diff --git a/src/gui/widgets/emotepage.cpp b/src/gui/widgets/emotepage.cpp index 869ae5d08..6101c20ae 100644 --- a/src/gui/widgets/emotepage.cpp +++ b/src/gui/widgets/emotepage.cpp @@ -68,7 +68,6 @@ void EmotePage::draw(Graphics *graphics) const std::vector &images = mEmotes->getImages(); - Graphics *const g = static_cast(graphics); const unsigned int width = mDimension.width; unsigned int x = 0; unsigned int y = 0; @@ -84,7 +83,7 @@ void EmotePage::draw(Graphics *graphics) const Image *const image = *it; if (image) { - g->calcTileCollection(mVertexes, image, x, y); + graphics->calcTileCollection(mVertexes, image, x, y); x += emoteWidth; if (x + emoteWidth > width) { @@ -94,7 +93,7 @@ void EmotePage::draw(Graphics *graphics) } } } - g->drawTileCollection(mVertexes); + graphics->drawTileCollection(mVertexes); } else { @@ -103,7 +102,7 @@ void EmotePage::draw(Graphics *graphics) const Image *const image = *it; if (image) { - g->drawImage2(image, x, y); + graphics->drawImage2(image, x, y); x += emoteWidth; if (x + emoteWidth > width) { -- cgit v1.2.3-60-g2f50