diff Core/DicomNetworking/Internals/CommandDispatcher.cpp @ 3964:821715370890

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 21 May 2020 11:49:53 +0200
parents 76a24be12912
children 7f296ae25039
line wrap: on
line diff
--- a/Core/DicomNetworking/Internals/CommandDispatcher.cpp	Thu May 21 10:47:58 2020 +0200
+++ b/Core/DicomNetworking/Internals/CommandDispatcher.cpp	Thu May 21 11:49:53 2020 +0200
@@ -880,7 +880,7 @@
             case DicomRequestType_Get:
               if (server_.HasGetRequestHandlerFactory()) // Should always be true
               {
-                std::auto_ptr<IGetRequestHandler> handler
+                std::unique_ptr<IGetRequestHandler> handler
                   (server_.GetGetRequestHandlerFactory().ConstructGetRequestHandler());
                 
                 if (handler.get() != NULL)