autoPtr - removed unneeded const_cast

This commit is contained in:
Mark Olesen
2008-11-17 08:40:39 +01:00
parent d01c115f02
commit 5bf78f0e23

View File

@ -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());
}
}