Mercurial > hg > orthanc
diff OrthancServer/LuaScripting.cpp @ 3712:2a170a8f1faf
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 15:32:45 +0100 |
parents | 231b46ce1984 |
children | 281045a1e6db |
line wrap: on
line diff
--- a/OrthancServer/LuaScripting.cpp Fri Feb 28 13:23:11 2020 +0100 +++ b/OrthancServer/LuaScripting.cpp Mon Mar 02 15:32:45 2020 +0100 @@ -610,7 +610,7 @@ if (operation == "modify") { - std::auto_ptr<DicomModification> modification(new DicomModification); + std::unique_ptr<DicomModification> modification(new DicomModification); modification->ParseModifyRequest(parameters); return lock.AddModifyInstanceOperation(context_, modification.release()); @@ -749,7 +749,7 @@ { for (;;) { - std::auto_ptr<IDynamicObject> event(that->pendingEvents_.Dequeue(100)); + std::unique_ptr<IDynamicObject> event(that->pendingEvents_.Dequeue(100)); if (event.get() == NULL) {