[QGIS-trac] [Quantum GIS] #2030: types conversion's errors when build

Quantum GIS qgis at qgis.org
Sat Oct 24 19:23:12 EDT 2009


#2030: types conversion's errors when build
---------------------------------------------------------+------------------
   Reporter:  brushtyler                                 |              Owner:  nobody
       Type:  patch                                      |             Status:  new   
   Priority:  critical: causes crash or data corruption  |          Milestone:        
  Component:  Build/Install                              |            Version:  HEAD  
   Keywords:  grass, build                               |   Platform_version:        
   Platform:  Debian                                     |           Must_fix:  No    
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 Sorry, but I don't know how fill the 'Milestone', 'Version' and 'Platform
 Version' fields.
 I'm on Ubuntu 8.10 and I'm using the code in the trunk.
 The patch file is attached.

 ------------------------------------------------------------------
 /trunk/qgis/src/providers/grass/qgsgrass.cpp:338
 G__setenv(( char * ) "GISDBASE", gisdbase.toAscii().constData() );

 cannot convert argument 2 from 'const char *' to 'char *'

 fix it by:
 G__setenv(( char * ) "GISDBASE", gisdbase.toAscii().data() );

 ----------------------------------------------------------------------
 /trunk/qgis/src/providers/grass/qgsgrass.cpp:340
 G__setenv(( char * ) "LOCATION_NAME", location.toAscii().constData() );

 cannot convert argumnet 2 from 'const char *' to 'char *'

 fix if by:
 G__setenv(( char * ) "LOCATION_NAME", location.toAscii().data() );

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2030>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list