Skip to content

Commit

Permalink
fix bad copy paste
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 15, 2017
1 parent d15bd8d commit 3f85b05
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions python/core/qgsoptionalexpression.sip
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ class QgsOptionalExpression
int operator== ( const QgsOptionalExpression &other ) const;
%MethodCode
sipRes = *sipCpp == *a0;
%End %End
%End


int __bool__() const; + QgsOptionalExpression( const QgsExpression &expression, bool enabled );
%MethodCode +%Docstring
sipRes = sipCpp->enabled(); + Construct an optional expression with the provided expression and enabled state.
%End %End
int __bool__() const;
%MethodCode
sipRes = sipCpp->enabled();
%End

/**
* Check if this optional is enabled
Expand Down

0 comments on commit 3f85b05

Please sign in to comment.