Skip to content

Commit

Permalink
Hush still-reachable valgrind report by avoiding singletons
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/geos/trunk@3945 5242fede-7e19-0410-aef8-94bd7d2200fb
  • Loading branch information
Sandro Santilli committed Sep 7, 2013
1 parent ffd7f04 commit ba077e6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/unit/triangulate/quadedge/QuadEdgeSubdivisionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <geos/triangulate/quadedge/QuadEdge.h>
#include <geos/triangulate/quadedge/QuadEdgeSubdivision.h>
#include <geos/triangulate/DelaunayTriangulationBuilder.h>
#include <geos/geom/PrecisionModel.h>
#include <geos/geom/GeometryCollection.h>
#include <geos/geom/GeometryFactory.h>
#include <geos/geom/CoordinateSequence.h>
Expand All @@ -33,7 +34,14 @@ namespace tut
// dummy data, not used
struct test_quadedgesub_data
{
geos::geom::PrecisionModel pm;
geos::geom::GeometryFactory gf;
geos::io::WKTReader reader;
test_quadedgesub_data()
:
pm(),
gf(&pm),
reader(gf)
{
}
};
Expand Down Expand Up @@ -74,7 +82,6 @@ namespace tut
template<>
void object::test<2>()
{
WKTReader reader;
Geometry* sites;
QuadEdgeSubdivision* subdiv;
sites = reader.read("MULTIPOINT ((150 200), (180 270), (275 163))");
Expand Down

0 comments on commit ba077e6

Please sign in to comment.