Fix comparison operators on object reference types
This commit is contained in:
committed by
Wojtek Figat
parent
8694bd6af9
commit
439f74c540
@@ -164,19 +164,19 @@ public:
|
||||
|
||||
public:
|
||||
|
||||
FORCE_INLINE bool operator==(T* other)
|
||||
FORCE_INLINE bool operator==(T* other) const
|
||||
{
|
||||
return _object == other;
|
||||
}
|
||||
FORCE_INLINE bool operator!=(T* other)
|
||||
FORCE_INLINE bool operator!=(T* other) const
|
||||
{
|
||||
return _object != other;
|
||||
}
|
||||
FORCE_INLINE bool operator==(const ScriptingObjectReference& other)
|
||||
FORCE_INLINE bool operator==(const ScriptingObjectReference& other) const
|
||||
{
|
||||
return _object == other._object;
|
||||
}
|
||||
FORCE_INLINE bool operator!=(const ScriptingObjectReference& other)
|
||||
FORCE_INLINE bool operator!=(const ScriptingObjectReference& other) const
|
||||
{
|
||||
return _object != other._object;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user