Commit cee539a 1 parent 3a64b44 commit cee539a Copy full SHA for cee539a
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class QgsDataDefined
76
76
*/
77
77
bool setFromXmlElement( const QDomElement& element );
78
78
79
- bool operator==( const QgsDataDefined &other );
80
- bool operator!=( const QgsDataDefined &other );
79
+ bool operator==( const QgsDataDefined &other ) const ;
80
+ bool operator!=( const QgsDataDefined &other ) const ;
81
81
82
82
};
Original file line number Diff line number Diff line change @@ -161,13 +161,13 @@ bool QgsDataDefined::setFromXmlElement( const QDomElement &element )
161
161
return true ;
162
162
}
163
163
164
- bool QgsDataDefined::operator ==( const QgsDataDefined &other )
164
+ bool QgsDataDefined::operator ==( const QgsDataDefined &other ) const
165
165
{
166
166
return other.isActive () == mActive && other.useExpression () == mUseExpression &&
167
167
other.field () == mField && other.expressionString () == mExpressionString ;
168
168
}
169
169
170
- bool QgsDataDefined::operator !=( const QgsDataDefined &other )
170
+ bool QgsDataDefined::operator !=( const QgsDataDefined &other ) const
171
171
{
172
172
return !( *this == other );
173
173
}
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ class CORE_EXPORT QgsDataDefined
98
98
*/
99
99
bool setFromXmlElement ( const QDomElement& element );
100
100
101
- bool operator ==( const QgsDataDefined &other );
102
- bool operator !=( const QgsDataDefined &other );
101
+ bool operator ==( const QgsDataDefined &other ) const ;
102
+ bool operator !=( const QgsDataDefined &other ) const ;
103
103
104
104
private:
105
105
QgsExpression* mExpression ;
You can’t perform that action at this time.
0 commit comments