[Qgis-psc] QEP 417 grant report : Replace SIP_FACTORY with std::unique_ptr
Julien Cabieces
julien.cabieces at oslandia.com
Mon Nov 16 00:35:14 PST 2026
Hi PSC,
Unfortunately, the work to replace SIP_FACTORY with std::unique_ptr [0] is
still on going. There are already 23 merged Pull requests [1] and I plan to
continue working on this in the next months.
This work is done semi automatically. A clang program find and replace
the SIP_FACTORY candidates and a python script help me in fixing
resulting compilation errors. Remaining errors need to be fixed
manually. Then, all the modifications are carefully reviewed.
I choose to split this work in several, not too big, pull requests in
order to ease the review. Thank you Nyall who has taking care all the
review by now.
At the moment, I'm replacing all methods which return non-QObject
methods and will continue, when possible, with method which return
QObject methods.
As discussed in the QEP, virtual methods will stay untouched because of
an issue with our current SIP version.
Thank you for funding this work.
Regards,
Julien
[0] https://github.com/qgis/QGIS-Enhancement-Proposals/blob/master/qep-417-remove-sip-factory.md
[1] https://github.com/qgis/QGIS/pulls?q=is%3Apr+state%3Aclosed+%22QEP+%23417%22
--
Julien Cabieces
Senior Developer at Oslandia
julien.cabieces at oslandia.com
More information about the QGIS-PSC
mailing list