Index: qgsgrass.cpp =================================================================== --- qgsgrass.cpp (revision 11837) +++ qgsgrass.cpp (working copy) @@ -335,9 +335,9 @@ // #if defined(WIN32) // G__setenv(( char * ) "GISDBASE", shortPath( gisdbase ).toLocal8Bit().data() ); //#else - G__setenv(( char * ) "GISDBASE", gisdbase.toAscii().constData() ); + G__setenv(( char * ) "GISDBASE", gisdbase.toAscii().data() ); //#endif - G__setenv(( char * ) "LOCATION_NAME", location.toAscii().constData() ); + G__setenv(( char * ) "LOCATION_NAME", location.toAscii().data() ); G__setenv(( char * ) "MAPSET", ( char * ) "PERMANENT" ); // PERMANENT must always exist // Add all available mapsets to search path