[geos-devel] [GEOS] #637: PrepairedPoint.h intersects is missing a const

GEOS geos-trac at osgeo.org
Thu Jul 18 12:21:44 PDT 2013


#637: PrepairedPoint.h intersects is missing a const
------------------------+---------------------------------------------------
 Reporter:  goatbar     |       Owner:  geos-devel@…              
     Type:  defect      |      Status:  new                       
 Priority:  major       |   Milestone:                            
Component:  Default     |     Version:  3.3.8                     
 Severity:  Unassigned  |    Keywords:                            
------------------------+---------------------------------------------------
 I believe this change is correct.  It helps a llvm compiler warning on my
 machine.

 In include/geos/geom/prep/PerparedPoint.h:

 {{{
         bool intersects(const geom::Geometry* g);
 }}}

 Should change to:

 {{{
         virtual bool intersects(const geom::Geometry* g) const;
 }}}

 and src/geom/prep/PreparedPoint.cpp

 {{{
 PreparedPoint::intersects(const geom::Geometry* g)
 }}}

 to

 {{{
 PreparedPoint::intersects(const geom::Geometry* g) const
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/637>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list