Code

Patch from Lubomir Rintel: fixes for GCC 4.4
[inkscape.git] / src / document.cpp
index fe6ce011b9590291894f9c04155bd53385af969d..2a9014e3e3a91893d6fefce6aa7b917768d139d8 100644 (file)
@@ -800,7 +800,7 @@ Glib::ustring SPDocument::getLanguage() {
         }
 
         if ( NULL != document_language ) {
-            gchar *pos = strchr(document_language, '_');
+            const char *pos = strchr(document_language, '_');
             if ( NULL != pos ) {
                 return Glib::ustring(document_language, pos - document_language);
             }