Skip to content
Snippets Groups Projects
Commit 5bf78f0e authored by Mark Olesen's avatar Mark Olesen
Browse files

autoPtr - removed unneeded const_cast

parent d01c115f
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment