Skip to content

Commit a71f2ad

Browse files
committed
Fix non-virtual destructor
1 parent fb66501 commit a71f2ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/core/layout/qgslayoutundocommand.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class QgsLayoutUndoObjectInterface
112112
%End
113113
public:
114114

115-
~QgsLayoutUndoObjectInterface();
115+
virtual ~QgsLayoutUndoObjectInterface();
116116
%Docstring
117117
Destructor for QgsLayoutUndoObjectInterface.
118118
%End

src/core/layout/qgslayoutundocommand.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class CORE_EXPORT QgsLayoutUndoObjectInterface
132132
/**
133133
* Destructor for QgsLayoutUndoObjectInterface.
134134
*/
135-
~QgsLayoutUndoObjectInterface() = default;
135+
virtual ~QgsLayoutUndoObjectInterface() = default;
136136

137137
/**
138138
* Creates a new layout undo command with the specified \a text and \a parent.

0 commit comments

Comments
 (0)