operator== is always const
This commit is contained in:
@@ -469,7 +469,7 @@ float PlayerOptions::GetReversePercentForColumn( int iCol )
|
||||
return f;
|
||||
}
|
||||
|
||||
bool PlayerOptions::operator==( const PlayerOptions &other )
|
||||
bool PlayerOptions::operator==( const PlayerOptions &other ) const
|
||||
{
|
||||
#define COMPARE(x) { if( x != other.x ) return false; }
|
||||
COMPARE(m_bTimeSpacing);
|
||||
|
||||
@@ -20,8 +20,8 @@ struct PlayerOptions
|
||||
void FromString( CString sOptions );
|
||||
void ChooseRandomMofifiers();
|
||||
|
||||
bool operator==( const PlayerOptions &other );
|
||||
bool operator!=( const PlayerOptions &other ) { return !operator==(other); }
|
||||
bool operator==( const PlayerOptions &other ) const;
|
||||
bool operator!=( const PlayerOptions &other ) const { return !operator==(other); }
|
||||
|
||||
|
||||
enum Accel {
|
||||
|
||||
@@ -126,7 +126,7 @@ void SongOptions::FromString( CString sOptions )
|
||||
}
|
||||
}
|
||||
|
||||
bool SongOptions::operator==( const SongOptions &other )
|
||||
bool SongOptions::operator==( const SongOptions &other ) const
|
||||
{
|
||||
#define COMPARE(x) { if( x != other.x ) return false; }
|
||||
COMPARE( m_LifeType );
|
||||
|
||||
@@ -30,8 +30,8 @@ struct SongOptions
|
||||
CString GetString() const;
|
||||
void FromString( CString sOptions );
|
||||
|
||||
bool operator==( const SongOptions &other );
|
||||
bool operator!=( const SongOptions &other ) { return !operator==(other); }
|
||||
bool operator==( const SongOptions &other ) const;
|
||||
bool operator!=( const SongOptions &other ) const { return !operator==(other); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user