From 3f85b050dca3aa2bddbed3475c90c8990156a1cc Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Mon, 15 May 2017 07:44:06 +0200 Subject: [PATCH] fix bad copy paste --- python/core/qgsoptionalexpression.sip | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/python/core/qgsoptionalexpression.sip b/python/core/qgsoptionalexpression.sip index aef7bbdca3c..79767517ab1 100644 --- a/python/core/qgsoptionalexpression.sip +++ b/python/core/qgsoptionalexpression.sip @@ -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