mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-05 19:55:52 +00:00
Remove unnecessary const_cast
Former-commit-id: 724dc8226e11216344dc5ead6831ae023c448943
This commit is contained in:
parent
0488b6e955
commit
984417bd3c
@ -54,10 +54,10 @@ void CToken::Unlock() {
|
||||
}
|
||||
|
||||
CToken& CToken::operator=(const CToken& other) {
|
||||
if (&other == const_cast< const CToken* >(this)) {
|
||||
if (&other == this) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Unlock();
|
||||
RemoveRef();
|
||||
x0_objRef = other.x0_objRef;
|
||||
|
Loading…
x
Reference in New Issue
Block a user