Skip to content

Commit cb68c98

Browse files
committedApr 24, 2017
Revert "Remove virtual method from class which shouldn't be subclassed"
This reverts commit 858129d. I remember now... that was added to avoid a totally nonsense and otherwise unfixable crash in the sip bindings...
1 parent 7b3859b commit cb68c98

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎python/core/qgsproperty.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class QgsProperty
8080
};
8181

8282
QgsProperty();
83+
virtual ~QgsProperty();
84+
8385
static QgsProperty fromExpression( const QString& expression, bool isActive = true );
8486
static QgsProperty fromField( const QString& fieldName, bool isActive = true );
8587
static QgsProperty fromValue( const QVariant& value, bool isActive = true );

‎src/core/qgsproperty.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ class CORE_EXPORT QgsProperty
201201
*/
202202
QgsProperty();
203203

204+
virtual ~QgsProperty() = default;
205+
204206
/**
205207
* Returns a new ExpressionBasedProperty created from the specified expression.
206208
*/

0 commit comments

Comments
 (0)
Please sign in to comment.