Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: net/spdy/hpack/hpack_constants.cc

Issue 2500693002: Replace unique_ptr.reset with std::move in /net (Closed)
Patch Set: fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/tcp_socket_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_constants.cc
diff --git a/net/spdy/hpack/hpack_constants.cc b/net/spdy/hpack/hpack_constants.cc
index b9db0ef2d6c86c7b75d0eddee0e619e9cac1f01f..1a2a267e1936c8fe1fb0b1dba1a423b670a1841b 100644
--- a/net/spdy/hpack/hpack_constants.cc
+++ b/net/spdy/hpack/hpack_constants.cc
@@ -25,7 +25,7 @@ struct SharedHpackHuffmanTable {
std::unique_ptr<HpackHuffmanTable> mutable_table(new HpackHuffmanTable());
CHECK(mutable_table->Initialize(&code[0], code.size()));
CHECK(mutable_table->IsInitialized());
- table.reset(mutable_table.release());
+ table = std::move(mutable_table);
}
static SharedHpackHuffmanTable* GetInstance() {
@@ -44,7 +44,7 @@ struct SharedHpackStaticTable {
std::unique_ptr<HpackStaticTable> mutable_table(new HpackStaticTable());
mutable_table->Initialize(&static_table[0], static_table.size());
CHECK(mutable_table->IsInitialized());
- table.reset(mutable_table.release());
+ table = std::move(mutable_table);
}
static SharedHpackStaticTable* GetInstance() {
« no previous file with comments | « net/socket/tcp_socket_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698