Mercurial > hg > orthanc
diff OrthancFramework/Sources/HttpServer/MultipartStreamReader.cpp @ 4148:732ad6c618ba
removing ChunkedBuffer::AddChunkDestructive()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 18 Aug 2020 16:56:33 +0200 |
parents | bf7b9edf6b81 |
children | 785a2713323e |
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/MultipartStreamReader.cpp Tue Aug 18 16:11:03 2020 +0200 +++ b/OrthancFramework/Sources/HttpServer/MultipartStreamReader.cpp Tue Aug 18 16:56:33 2020 +0200 @@ -126,8 +126,7 @@ else { // We have not seen the end of the unused area yet - std::string reminder(current, corpusEnd); - buffer_.AddChunkDestructive(reminder); + buffer_.AddChunk(current, corpusEnd); return; } } @@ -206,8 +205,7 @@ if (current != corpusEnd) { - std::string reminder(current, corpusEnd); - buffer_.AddChunkDestructive(reminder); + buffer_.AddChunk(current, corpusEnd); } }