Skip to content
Permalink
Browse files
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...
  • Loading branch information
nyalldawson committed Apr 24, 2017
1 parent 7b3859b commit cb68c982b829ecf94b19f9b9a030a269e1c2239f
Showing with 4 additions and 0 deletions.
  1. +2 −0 python/core/qgsproperty.sip
  2. +2 −0 src/core/qgsproperty.h
@@ -80,6 +80,8 @@ class QgsProperty
};

QgsProperty();
virtual ~QgsProperty();

static QgsProperty fromExpression( const QString& expression, bool isActive = true );
static QgsProperty fromField( const QString& fieldName, bool isActive = true );
static QgsProperty fromValue( const QVariant& value, bool isActive = true );
@@ -201,6 +201,8 @@ class CORE_EXPORT QgsProperty
*/
QgsProperty();

virtual ~QgsProperty() = default;

/**
* Returns a new ExpressionBasedProperty created from the specified expression.
*/

0 comments on commit cb68c98

Please sign in to comment.