mirror of https://github.com/PrimeDecomp/prime.git
Remove unnecessary const_cast
This commit is contained in:
parent
ff40d50c8d
commit
724dc8226e
|
@ -54,7 +54,7 @@ void CToken::Unlock() {
|
||||||
}
|
}
|
||||||
|
|
||||||
CToken& CToken::operator=(const CToken& other) {
|
CToken& CToken::operator=(const CToken& other) {
|
||||||
if (&other == const_cast< const CToken* >(this)) {
|
if (&other == this) {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue