Remove unnecessary const_cast

Former-commit-id: 724dc8226e
This commit is contained in:
Phillip Stephens 2022-10-20 07:30:53 -07:00
parent 0488b6e955
commit 984417bd3c
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ void CToken::Unlock() {
}
CToken& CToken::operator=(const CToken& other) {
if (&other == const_cast< const CToken* >(this)) {
if (&other == this) {
return *this;
}