Based on: T23554 changing raw pointer to smart pointer
Pushed new branch T23919-MitkChart-SmartPointer.
We did not yet merge this branch, as there seems to be a bug (T24011). It is not directly connected to this task, but it hinders to test this tasks feature.
@kalali could you check again, please? T24011 is fixed now.