qgis / qgis4.0_api

Tracker for QGIS 4.0 API related issues and developer discussion
3 stars 1 forks source link

No more QgsGeometry pointers in API #68

Closed nyalldawson closed 7 years ago

nyalldawson commented 7 years ago

Given that QgsGeometry objects are now implicitly shared, we can make the API much more robust by changing all the API calls which accept/return QgsGeometry pointers to instead accept const QgsGeometry& and return a QgsGeometry value. This will avoid any potential memory leaks and pointer lifetime issues.