Fix comparison operators on object reference types
This commit is contained in:
@@ -150,22 +150,22 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE bool operator==(T* other)
|
FORCE_INLINE bool operator==(T* other) const
|
||||||
{
|
{
|
||||||
return _asset == other;
|
return _asset == other;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE bool operator==(const AssetReference& other)
|
FORCE_INLINE bool operator==(const AssetReference& other) const
|
||||||
{
|
{
|
||||||
return _asset == other._asset;
|
return _asset == other._asset;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE bool operator!=(T* other)
|
FORCE_INLINE bool operator!=(T* other) const
|
||||||
{
|
{
|
||||||
return _asset != other;
|
return _asset != other;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE bool operator!=(const AssetReference& other)
|
FORCE_INLINE bool operator!=(const AssetReference& other) const
|
||||||
{
|
{
|
||||||
return _asset != other._asset;
|
return _asset != other._asset;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,19 +105,19 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FORCE_INLINE bool operator==(T* other)
|
FORCE_INLINE bool operator==(T* other) const
|
||||||
{
|
{
|
||||||
return Get() == other;
|
return Get() == other;
|
||||||
}
|
}
|
||||||
FORCE_INLINE bool operator==(const SoftAssetReference& other)
|
FORCE_INLINE bool operator==(const SoftAssetReference& other) const
|
||||||
{
|
{
|
||||||
return GetID() == other.GetID();
|
return GetID() == other.GetID();
|
||||||
}
|
}
|
||||||
FORCE_INLINE bool operator!=(T* other)
|
FORCE_INLINE bool operator!=(T* other) const
|
||||||
{
|
{
|
||||||
return Get() != other;
|
return Get() != other;
|
||||||
}
|
}
|
||||||
FORCE_INLINE bool operator!=(const SoftAssetReference& other)
|
FORCE_INLINE bool operator!=(const SoftAssetReference& other) const
|
||||||
{
|
{
|
||||||
return GetID() != other.GetID();
|
return GetID() != other.GetID();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,12 +137,12 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE bool operator==(T* other)
|
FORCE_INLINE bool operator==(T* other) const
|
||||||
{
|
{
|
||||||
return _asset == other;
|
return _asset == other;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE bool operator==(const WeakAssetReference& other)
|
FORCE_INLINE bool operator==(const WeakAssetReference& other) const
|
||||||
{
|
{
|
||||||
return _asset == other._asset;
|
return _asset == other._asset;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,19 +164,19 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FORCE_INLINE bool operator==(T* other)
|
FORCE_INLINE bool operator==(T* other) const
|
||||||
{
|
{
|
||||||
return _object == other;
|
return _object == other;
|
||||||
}
|
}
|
||||||
FORCE_INLINE bool operator!=(T* other)
|
FORCE_INLINE bool operator!=(T* other) const
|
||||||
{
|
{
|
||||||
return _object != other;
|
return _object != other;
|
||||||
}
|
}
|
||||||
FORCE_INLINE bool operator==(const ScriptingObjectReference& other)
|
FORCE_INLINE bool operator==(const ScriptingObjectReference& other) const
|
||||||
{
|
{
|
||||||
return _object == other._object;
|
return _object == other._object;
|
||||||
}
|
}
|
||||||
FORCE_INLINE bool operator!=(const ScriptingObjectReference& other)
|
FORCE_INLINE bool operator!=(const ScriptingObjectReference& other) const
|
||||||
{
|
{
|
||||||
return _object != other._object;
|
return _object != other._object;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user