convert std::autor_ptr to std::unique_ptr, originally by Ewan Higgs and updated by Bret Curtis

This commit is contained in:
Ewan Higgs 2017-04-28 17:30:26 +02:00 committed by Bret Curtis
parent 27a5c06f04
commit 38a2de3c51
75 changed files with 125 additions and 131 deletions

View file

@ -294,7 +294,7 @@ namespace Compiler
{
// workaround for broken positioncell instructions.
/// \todo add option to disable this
std::auto_ptr<ErrorDowngrade> errorDowngrade (0);
std::unique_ptr<ErrorDowngrade> errorDowngrade (nullptr);
if (Misc::StringUtils::lowerCase (loc.mLiteral)=="positioncell")
errorDowngrade.reset (new ErrorDowngrade (getErrorHandler()));