[geos-commits] r3095 - trunk/tests/xmltester
svn_geos at osgeo.org
svn_geos at osgeo.org
Fri Aug 27 05:04:12 EDT 2010
Author: strk
Date: 2010-08-27 09:04:12 +0000 (Fri, 27 Aug 2010)
New Revision: 3095
Modified:
trunk/tests/xmltester/XMLTester.cpp
trunk/tests/xmltester/XMLTester.h
Log:
const-correctness
Modified: trunk/tests/xmltester/XMLTester.cpp
===================================================================
--- trunk/tests/xmltester/XMLTester.cpp 2010-08-27 06:17:35 UTC (rev 3094)
+++ trunk/tests/xmltester/XMLTester.cpp 2010-08-27 09:04:12 UTC (rev 3095)
@@ -650,13 +650,13 @@
/*private*/
void
-XMLTester::printGeom(std::ostream& os, geom::Geometry *g)
+XMLTester::printGeom(std::ostream& os, const geom::Geometry *g)
{
os << printGeom(g);
}
std::string
-XMLTester::printGeom(geom::Geometry *g)
+XMLTester::printGeom(const geom::Geometry *g)
{
if ( HEXWKB_output )
{
Modified: trunk/tests/xmltester/XMLTester.h
===================================================================
--- trunk/tests/xmltester/XMLTester.h 2010-08-27 06:17:35 UTC (rev 3094)
+++ trunk/tests/xmltester/XMLTester.h 2010-08-27 09:04:12 UTC (rev 3095)
@@ -42,8 +42,8 @@
void runPredicates(const geom::Geometry *a, const geom::Geometry *b);
geom::Geometry *parseGeometry(const std::string &in, const char* label="parsed");
static std::string trimBlanks(const std::string &in);
- void printGeom(std::ostream& os, geom::Geometry *g);
- std::string printGeom(geom::Geometry *g);
+ void printGeom(std::ostream& os, const geom::Geometry *g);
+ std::string printGeom(const geom::Geometry *g);
void printTest(bool success, const std::string& expected_result, const std::string& actual_result);
geom::Geometry *gA;
More information about the geos-commits
mailing list