Feature request #2030

types conversion's errors when build

Added by Giuseppe Sucameli about 15 years ago. Updated about 15 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Build/Install
Pull Request or Patch supplied: Resolution:wontfix
Easy fix?:No Copied to github as #:12090

Description

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() );

qgsgrass.cpp.diff Magnifier - patch file (720 Bytes) Giuseppe Sucameli, 2009-10-24 04:23 PM

History

#1 Updated by Jürgen Fischer about 15 years ago

  • Resolution set to wontfix
  • Status changed from Open to Closed

intrepid still has GRASS 6.2. GRASS 6.4 (and IIRC GRASS 6.3) the argument is const.

Our ubuntu ppa already has packages for intrepid (including a patch)

Also available in: Atom PDF