@@ -664,11 +664,11 @@ QgsExpression::Node* QgsExpression::Node::createFromOgcFilter( QDomElement &elem
664
664
{
665
665
return QgsExpression::NodeLiteral::createFromOgcFilter ( element, errorMessage );
666
666
}
667
- else if ( element.localName () == " Function" )
667
+ else if ( element.localName () == " Function" )
668
668
{
669
669
return QgsExpression::NodeFunction::createFromOgcFilter ( element, errorMessage );
670
670
}
671
- else if ( element.localName () == " PropertyName" )
671
+ else if ( element.localName () == " PropertyName" )
672
672
{
673
673
return QgsExpression::NodeColumnRef::createFromOgcFilter ( element, errorMessage );
674
674
}
@@ -826,11 +826,11 @@ QgsExpression::Node* QgsExpression::NodeUnaryOperator::createFromOgcFilter( QDom
826
826
if ( !operand )
827
827
{
828
828
if ( errorMessage.isEmpty () )
829
- errorMessage = QString ( " invalid operand for '%1' unary operator" ).arg ( ogcOperatorName );
829
+ errorMessage = QString ( " invalid operand for '%1' unary operator" ).arg ( ogcOperatorName );
830
830
return NULL ;
831
831
}
832
832
833
- return new QgsExpression::NodeUnaryOperator ( ( UnaryOperator ) i, operand );
833
+ return new QgsExpression::NodeUnaryOperator (( UnaryOperator ) i, operand );
834
834
}
835
835
836
836
errorMessage = QString ( " %1 unary operator not supported." ).arg ( element.tagName () );
@@ -975,10 +975,10 @@ QVariant QgsExpression::NodeBinaryOperator::eval( QgsExpression* parent, QgsFeat
975
975
matches = QRegExp ( regexp ).indexIn ( str ) != -1 ;
976
976
}
977
977
978
- if ( mOp == boNotLike || mOp == boNotILike )
979
- {
980
- matches = !matches;
981
- }
978
+ if ( mOp == boNotLike || mOp == boNotILike )
979
+ {
980
+ matches = !matches;
981
+ }
982
982
983
983
return matches ? TVL_True : TVL_False;
984
984
}
@@ -1085,8 +1085,8 @@ void QgsExpression::NodeBinaryOperator::toOgcFilter( QDomDocument &doc, QDomElem
1085
1085
1086
1086
element.appendChild ( eqElem );
1087
1087
}
1088
- else if ( ( opLeftLiteral && opLeftLiteral->value ().isNull () ) ||
1089
- ( opRightLiteral && opRightLiteral->value ().isNull () ) )
1088
+ else if (( opLeftLiteral && opLeftLiteral->value ().isNull () ) ||
1089
+ ( opRightLiteral && opRightLiteral->value ().isNull () ) )
1090
1090
{
1091
1091
// at least one operand is NULL, use <ogc:PropertyIsNull> element
1092
1092
QDomElement isNullElem = doc.createElement ( " ogc:PropertyIsNull" );
@@ -1186,7 +1186,7 @@ QgsExpression::Node* QgsExpression::NodeBinaryOperator::createFromOgcFilter( QDo
1186
1186
if ( !opLeft )
1187
1187
{
1188
1188
if ( errorMessage.isEmpty () )
1189
- errorMessage = QString ( " invalid left operand for '%1' binary operator" ).arg ( ogcOperatorName );
1189
+ errorMessage = QString ( " invalid left operand for '%1' binary operator" ).arg ( ogcOperatorName );
1190
1190
break ;
1191
1191
}
1192
1192
@@ -1195,11 +1195,11 @@ QgsExpression::Node* QgsExpression::NodeBinaryOperator::createFromOgcFilter( QDo
1195
1195
if ( !opRight )
1196
1196
{
1197
1197
if ( errorMessage.isEmpty () )
1198
- errorMessage = QString ( " invalid right operand for '%1' binary operator" ).arg ( ogcOperatorName );
1198
+ errorMessage = QString ( " invalid right operand for '%1' binary operator" ).arg ( ogcOperatorName );
1199
1199
break ;
1200
1200
}
1201
1201
1202
- return new QgsExpression::NodeBinaryOperator ( ( BinaryOperator ) i, opLeft, opRight );
1202
+ return new QgsExpression::NodeBinaryOperator (( BinaryOperator ) i, opLeft, opRight );
1203
1203
}
1204
1204
1205
1205
if ( !opLeft && !opRight )
0 commit comments