Mercurial > hg > orthanc
comparison Core/HttpServer/HttpServer.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 | ea8c1c0e81eb |
children | 9fe1d64a748c |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
851 isMultipartForm = true; | 851 isMultipartForm = true; |
852 } | 852 } |
853 | 853 |
854 if (!isMultipartForm) | 854 if (!isMultipartForm) |
855 { | 855 { |
856 std::auto_ptr<IHttpHandler::IChunkedRequestReader> stream; | 856 std::unique_ptr<IHttpHandler::IChunkedRequestReader> stream; |
857 | 857 |
858 if (server.HasHandler()) | 858 if (server.HasHandler()) |
859 { | 859 { |
860 found = server.GetHandler().CreateChunkedRequestReader | 860 found = server.GetHandler().CreateChunkedRequestReader |
861 (stream, RequestOrigin_RestApi, remoteIp, username.c_str(), method, uri, headers); | 861 (stream, RequestOrigin_RestApi, remoteIp, username.c_str(), method, uri, headers); |