summaryrefslogtreecommitdiff
path: root/src/gui/browserbox.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-27 22:30:19 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-27 22:30:19 +0000
commitd61fdaf1932724f86a68484c4a05195ca270646e (patch)
treec5b9fb13007679401ed0b0937660fac491b69a5c /src/gui/browserbox.cpp
parent88b3f92061c703fdf6cf0f970684fb77de6d8795 (diff)
downloadmana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.gz
mana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.bz2
mana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.xz
mana-d61fdaf1932724f86a68484c4a05195ca270646e.zip
Removed useless yet costly dynamic casts.
Diffstat (limited to 'src/gui/browserbox.cpp')
-rw-r--r--src/gui/browserbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp
index 65fdde64..4a3f2f64 100644
--- a/src/gui/browserbox.cpp
+++ b/src/gui/browserbox.cpp
@@ -104,7 +104,7 @@ void BrowserBox::addRow(const std::string &row)
std::string newRow;
BROWSER_LINK bLink;
int idx1, idx2, idx3;
- gcn::ImageFont *font = dynamic_cast<gcn::ImageFont*>(getFont());
+ gcn::ImageFont *font = static_cast<gcn::ImageFont*>(getFont());
// Use links and user defined colors
if (mUseLinksAndUserColors)
@@ -294,7 +294,7 @@ BrowserBox::draw(gcn::Graphics *graphics)
unsigned int i, j;
int x = 0, y = 0;
int wrappedLines = 0;
- gcn::ImageFont *font = dynamic_cast<gcn::ImageFont*>(getFont());
+ gcn::ImageFont *font = static_cast<gcn::ImageFont*>(getFont());
graphics->setColor(BLACK);
for (i = 0; i < mTextRows.size(); i++)