New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some /Transfer/ annotations #3460
Conversation
Nice work! Looks good to merge |
@@ -54,7 +54,7 @@ class QgsGeometryRubberBand: QgsMapCanvasItem | |||
~QgsGeometryRubberBand(); | |||
|
|||
/** Sets geometry (takes ownership). Geometry is expected to be in map coordinates */ | |||
void setGeometry( QgsAbstractGeometry* geom ); | |||
void setGeometry( QgsAbstractGeometry* geom /Transfer/ ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should fix this and make it accept a QgsGeometry instead. That'll avoid any potential leaks/deleted pointer issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better would be to merge QgsGeometryRubberBand with QgsRubberBand ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. So what was the idea of QgsGeometryRubberBand ? @mhugent ?
Ready to ship? |
@mhugo does it take a lot to fix this so we can remove it from the PR queue? |
@m-kuhn Sorry for the delay ! |
Thank you! |
I was originally interested in fixing QgsGeometryRubberBand::setGeometry, but found some other candidates based on the surrounding comments ("takes ownership")