Userdata equality should always be valid to check, even when no explicit operator is given for it
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Porygon::UserData {
|
||||
delete _userData;
|
||||
}
|
||||
|
||||
RetrievedUserData* GetUserData() const{
|
||||
[[nodiscard]] RetrievedUserData* GetUserData() const{
|
||||
return _userData;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Porygon::UserData {
|
||||
_obj = obj;
|
||||
}
|
||||
|
||||
~UserDataValue(){
|
||||
~UserDataValue() final{
|
||||
delete _userData;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Porygon::UserData {
|
||||
delete value;
|
||||
}
|
||||
|
||||
inline void* GetObjectPointer() const{
|
||||
[[nodiscard]] inline void* GetObjectPointer() const{
|
||||
return _obj;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user