https://bugs.kde.org/show_bug.cgi?id=427333

--- Comment #31 from caulier.gil...@gmail.com ---
Maik,

I think i discovered the origin of the wrong virtual calls which crash here.

Clazy static analyzer report plenty of warnings relevant of this check:

https://github.com/KDE/clazy/blob/master/docs/checks/README-copyable-polymorphic.md

Solution: disabled copy constructor in relevant classes if possible (i
currently do it) or implemented clone() operator.   

Some pointers :

https://stackoverflow.com/questions/4122789/copy-object-keep-polymorphism

https://www.fluentcpp.com/2017/09/08/make-polymorphic-copy-modern-cpp/

Did you already take a look of this approach ?

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to