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.
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.