mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Add missing const to equality operator
This commit is contained in:
parent
3a64b446e3
commit
cee539aae8
@ -76,7 +76,7 @@ class QgsDataDefined
|
||||
*/
|
||||
bool setFromXmlElement( const QDomElement& element );
|
||||
|
||||
bool operator==( const QgsDataDefined &other );
|
||||
bool operator!=( const QgsDataDefined &other );
|
||||
bool operator==( const QgsDataDefined &other ) const;
|
||||
bool operator!=( const QgsDataDefined &other ) const;
|
||||
|
||||
};
|
||||
|
@ -161,13 +161,13 @@ bool QgsDataDefined::setFromXmlElement( const QDomElement &element )
|
||||
return true;
|
||||
}
|
||||
|
||||
bool QgsDataDefined::operator==( const QgsDataDefined &other )
|
||||
bool QgsDataDefined::operator==( const QgsDataDefined &other ) const
|
||||
{
|
||||
return other.isActive() == mActive && other.useExpression() == mUseExpression &&
|
||||
other.field() == mField && other.expressionString() == mExpressionString;
|
||||
}
|
||||
|
||||
bool QgsDataDefined::operator!=( const QgsDataDefined &other )
|
||||
bool QgsDataDefined::operator!=( const QgsDataDefined &other ) const
|
||||
{
|
||||
return !( *this == other );
|
||||
}
|
||||
|
@ -98,8 +98,8 @@ class CORE_EXPORT QgsDataDefined
|
||||
*/
|
||||
bool setFromXmlElement( const QDomElement& element );
|
||||
|
||||
bool operator==( const QgsDataDefined &other );
|
||||
bool operator!=( const QgsDataDefined &other );
|
||||
bool operator==( const QgsDataDefined &other ) const;
|
||||
bool operator!=( const QgsDataDefined &other ) const;
|
||||
|
||||
private:
|
||||
QgsExpression* mExpression;
|
||||
|
Loading…
x
Reference in New Issue
Block a user