summaryrefslogtreecommitdiff
path: root/src/gui/browserbox.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-09-20 20:31:24 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-09-20 20:31:24 +0000
commit9cfafa755012bfd68c661996ddaea76e2e265f81 (patch)
tree1fe3ce4840a519ac38b302d0036741824fcce280 /src/gui/browserbox.cpp
parent21f741eea2caa062267bd1f8f5055ab622261950 (diff)
downloadmana-client-9cfafa755012bfd68c661996ddaea76e2e265f81.tar.gz
mana-client-9cfafa755012bfd68c661996ddaea76e2e265f81.tar.bz2
mana-client-9cfafa755012bfd68c661996ddaea76e2e265f81.tar.xz
mana-client-9cfafa755012bfd68c661996ddaea76e2e265f81.zip
Fixed some compilation warning.
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 c618fa69..717342de 100644
--- a/src/gui/browserbox.cpp
+++ b/src/gui/browserbox.cpp
@@ -140,7 +140,7 @@ void BrowserBox::addRow(const std::string &row)
{
unsigned int i, j, y = 0;
unsigned int nextChar;
- char *hyphen = "~";
+ char const *hyphen = "~";
int hyphenWidth = font->getWidth(hyphen);
int x = 0;
for (i = 0; i < mTextRows.size(); i++)
@@ -362,7 +362,7 @@ BrowserBox::draw(gcn::Graphics *graphics)
if (mMode == AUTO_WRAP)
{
unsigned int nextChar = j + 1;
- char *hyphen = "~";
+ char const *hyphen = "~";
int hyphenWidth = font->getWidth(hyphen);
// Wraping between words (at blank spaces)