comparison Framework/Deprecated/Loaders/LoaderStateMachine.cpp @ 1299:c38c89684d83 broker

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 17:21:24 +0100
parents 7ec8fea061b9
children 257f2c9a02ac
comparison
equal deleted inserted replaced
1297:6ab03e429f06 1299:c38c89684d83
45 45
46 void LoaderStateMachine::Schedule(OrthancStone::OracleCommandBase* command) 46 void LoaderStateMachine::Schedule(OrthancStone::OracleCommandBase* command)
47 { 47 {
48 LOG(TRACE) << "LoaderStateMachine(" << std::hex << this << std::dec << ")::Schedule()"; 48 LOG(TRACE) << "LoaderStateMachine(" << std::hex << this << std::dec << ")::Schedule()";
49 49
50 std::auto_ptr<OrthancStone::OracleCommandBase> protection(command); 50 std::unique_ptr<OrthancStone::OracleCommandBase> protection(command);
51 51
52 if (command == NULL) 52 if (command == NULL)
53 { 53 {
54 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); 54 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer);
55 } 55 }