comparison Framework/Loaders/LoaderStateMachine.cpp @ 1298:8a0a62189f46

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 16:31:30 +0100
parents 2d8ab34c8c91
children f4a06ad1580b
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
45 45
46 void LoaderStateMachine::Schedule(OracleCommandWithPayload* command) 46 void LoaderStateMachine::Schedule(OracleCommandWithPayload* 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<OracleCommandWithPayload> protection(command); 50 std::unique_ptr<OracleCommandWithPayload> 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 }