mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
autoPtr - removed unneeded const_cast
This commit is contained in:
@ -181,10 +181,7 @@ inline void Foam::autoPtr<T>::operator=(const autoPtr<T>& ap)
|
||||
{
|
||||
if (this != &ap)
|
||||
{
|
||||
const_cast<autoPtr<T>&>(*this).reset
|
||||
(
|
||||
const_cast<autoPtr<T>&>(ap).ptr()
|
||||
);
|
||||
reset(const_cast<autoPtr<T>&>(ap).ptr());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user