From 0a798c4225dda1f62100070ff3a4414a27fa8cb8 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 29 Dec 2008 15:19:42 +0100 Subject: Fixed two compiler warnings about deprecated char* --- src/gui/browserbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/browserbox.cpp') 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) -- cgit v1.2.3-70-g09d2