Get rid of easily removable uses of const_cast
This commit is contained in:
parent
893bbdfde8
commit
d58b2e879f
69 changed files with 342 additions and 306 deletions
|
|
@ -222,7 +222,7 @@ struct PtrToArg<Ref<T>> {
|
|||
return Ref<T>();
|
||||
}
|
||||
// p_ptr points to a RefCounted object
|
||||
return Ref<T>(const_cast<T *>(*reinterpret_cast<T *const *>(p_ptr)));
|
||||
return Ref<T>(*reinterpret_cast<T *const *>(p_ptr));
|
||||
}
|
||||
|
||||
typedef Ref<T> EncodeT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue