summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-29 15:19:42 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-29 15:19:42 +0100
commit0a798c4225dda1f62100070ff3a4414a27fa8cb8 (patch)
tree0977ed7a1eab9fe0461a2308ffbea390e45e3fb6
parent7cc4dfe0c26fa84e6b9245b6874a853405dea87a (diff)
downloadmana-0a798c4225dda1f62100070ff3a4414a27fa8cb8.tar.gz
mana-0a798c4225dda1f62100070ff3a4414a27fa8cb8.tar.bz2
mana-0a798c4225dda1f62100070ff3a4414a27fa8cb8.tar.xz
mana-0a798c4225dda1f62100070ff3a4414a27fa8cb8.zip
Fixed two compiler warnings about deprecated char*
-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 48ac048e..3e446928 100644
--- a/src/gui/browserbox.cpp
+++ b/src/gui/browserbox.cpp
@@ -145,7 +145,7 @@ void BrowserBox::addRow(const std::string &row)
{
unsigned int j, y = 0;
unsigned int nextChar;
- char *hyphen = "~";
+ const char *hyphen = "~";
int hyphenWidth = font->getWidth(hyphen);
int x = 0;
@@ -368,7 +368,7 @@ BrowserBox::draw(gcn::Graphics *graphics)
if (mMode == AUTO_WRAP)
{
unsigned int nextChar = j + 1;
- char *hyphen = "~";
+ const char *hyphen = "~";
int hyphenWidth = font->getWidth(hyphen);
// Wraping between words (at blank spaces)