[GRASS-SVN] r36677 - grass-addons/raster/r.terracost
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 11 02:18:05 EDT 2009
Author: neteler
Date: 2009-04-11 02:18:02 -0400 (Sat, 11 Apr 2009)
New Revision: 36677
Modified:
grass-addons/raster/r.terracost/stats.cc
grass-addons/raster/r.terracost/stats.h
Log:
const compilation error fixed by correctly applying Andrew's fixes
Modified: grass-addons/raster/r.terracost/stats.cc
===================================================================
--- grass-addons/raster/r.terracost/stats.cc 2009-04-11 06:09:59 UTC (rev 36676)
+++ grass-addons/raster/r.terracost/stats.cc 2009-04-11 06:18:02 UTC (rev 36677)
@@ -113,7 +113,7 @@
int
-noclobberFile(const char *fname) {
+noclobberFile(char * const fname) {
int fd=-1;
while(fd<0) {
@@ -162,7 +162,7 @@
/* ********************************************************************** */
-statsRecorder::statsRecorder(const char *fname) {
+statsRecorder::statsRecorder(char * const fname) {
//note: in the new version of gcc there is not constructor for
//ofstream that takes an fd; wrote another noclobber() function that
//closes fd and returns the name;
Modified: grass-addons/raster/r.terracost/stats.h
===================================================================
--- grass-addons/raster/r.terracost/stats.h 2009-04-11 06:09:59 UTC (rev 36676)
+++ grass-addons/raster/r.terracost/stats.h 2009-04-11 06:18:02 UTC (rev 36677)
@@ -35,7 +35,7 @@
Rtimer tm;
void *bss;
public:
- statsRecorder(const char *fname);
+ statsRecorder(char * const fname);
/* ~statsRecorder() { */
/* this->flush(); */
/* } */
More information about the grass-commit
mailing list