diff window/widget.cc @ 47:5f548e5957a8

* get rid of the "deprecated conversion from string constant to ‘char*’" warnings
author thib
date Wed, 15 Apr 2009 20:26:32 +0000
parents 8da1d92ac8f8
children 15a18fbe6f21
line wrap: on
line diff
--- a/window/widget.cc
+++ b/window/widget.cc
@@ -37,7 +37,7 @@ void DSurfaceMove(Surface* src, const Re
 
 //static char* wdefault_font_orig = "msgothic.ttc;times.ttf;";
 static std::map<int, XKFont::HorizLayout*> size_to_layout;
-static char* wdefault_font_orig = "times.ttf;msgothic.ttc";
+static const char* wdefault_font_orig = "times.ttf;msgothic.ttc";
 static std::string wdefault_font = wdefault_font_orig;
 
 void SetFont(const char* font) {