Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/DefaultWebRequestWinInet.cpp

Issue 29361644: Issue 769 - replace auto_ptr by unique_ptr and use proper delete[] operator (Closed)
Patch Set: Created Nov. 3, 2016, 1:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/DefaultWebRequestWinInet.cpp
diff --git a/src/DefaultWebRequestWinInet.cpp b/src/DefaultWebRequestWinInet.cpp
index e571057fcf7efc521eb36c8e91e2070113e6b273..5c415eb315da7cc1a6aa9e0c5359f42b639cbe4f 100644
--- a/src/DefaultWebRequestWinInet.cpp
+++ b/src/DefaultWebRequestWinInet.cpp
@@ -309,7 +309,7 @@ AdblockPlus::ServerResponse AdblockPlus::DefaultWebRequest::GET(
ParseResponseHeaders(hRequest, &result);
- std::auto_ptr<char> outBuffer;
+ std::unique_ptr<char[]> outBuffer;
DWORD downloadSize, downloaded;
// Download the actual response
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld