fix bad copy paste

This commit is contained in:
Matthias Kuhn 2017-05-15 07:44:06 +02:00
parent d15bd8dd22
commit 3f85b050dc

View File

@ -45,12 +45,13 @@ class QgsOptionalExpression
int operator== ( const QgsOptionalExpression &other ) const; int operator== ( const QgsOptionalExpression &other ) const;
%MethodCode %MethodCode
sipRes = *sipCpp == *a0; sipRes = *sipCpp == *a0;
%End %End %End
int __bool__() const; + QgsOptionalExpression( const QgsExpression &expression, bool enabled );
%MethodCode +%Docstring int __bool__() const;
sipRes = sipCpp->enabled(); + Construct an optional expression with the provided expression and enabled state. %MethodCode
%End %End sipRes = sipCpp->enabled();
%End
/** /**
* Check if this optional is enabled * Check if this optional is enabled