Closed domi4484 closed 4 months ago
What is the reason to switch to a pointer? Looking in QGIS source code shows mainly the use of a const ref.
The constructor of QgsMapLayerRenderer needs a pointer. So I thought a class inheriting from it should use the same interface. But you are right looking in qgis its mainly passed by ref. Non const as it need to be modified. Ill change that!
@3nids done thanks
Thanks. Sorry, I misread, I would follow QGIS API and use the same signature in the subclass. So let's go with your first commit, it's good!
In the end in qgis it's the same, they change the signature in subclasses. So I'll keep the second commit to stay more close to that
What is the reason to switch to a pointer? Looking in QGIS source code shows mainly the use of a const ref.