Undo.h: Lots of warnings about non-virtual destructor
When I build MuseScore from SVN trunk the compiler emits lots of warnings against most (if not all) of the classes in undo.h, inheriting from UndoCommand. "the class ... has virtual functions but non-virtual destructor".
As far as I can see this has a really easy fix - add the virtual keyword to the destructor of UndoCommand.
I have attached a patch.
Attachment | Size |
---|---|
undocommand_virtual_destructor.diff_.txt.txt | 439 bytes |
Comments
Thanks for the patch. I tested on windows and it looks ok. I commited in r1938
I assume it is safe to mark this as fixed (since the patch is committed).
Automatically closed -- issue fixed for 2 weeks with no activity.