Skip to content
Permalink
Browse files

QgsPointV2 -> QgsPoint

  • Loading branch information
m-kuhn committed Jul 17, 2017
1 parent 639d064 commit 4c136a78086b7fef31ca1c6acc2c70e7060e2c44
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/geometry/qgspoint.h
@@ -419,16 +419,16 @@ class CORE_EXPORT QgsPoint: public QgsAbstractGeometry
#ifndef SIP_RUN

/**
* Cast the \a geom to a QgsPointV2.
* Should be used by qgsgeometry_cast<QgsPointV2 *>( geometry ).
* Cast the \a geom to a QgsPoint.
* Should be used by qgsgeometry_cast<QgsPoint *>( geometry ).
*
* \note Not available in Python. Objects will be automatically be converted to the appropriate target type.
* \since QGIS 3.0
*/
inline const QgsPointV2 *cast( const QgsAbstractGeometry *geom ) const
inline const QgsPoint *cast( const QgsAbstractGeometry *geom ) const
{
if ( geom && QgsWkbTypes::flatType( geom->wkbType() ) == QgsWkbTypes::Point )
return static_cast<const QgsPointV2 *>( geom );
return static_cast<const QgsPoint *>( geom );
return nullptr;
}
#endif

0 comments on commit 4c136a7

Please sign in to comment.
You can’t perform that action at this time.