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

Unified Diff: remoting/protocol/util.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 months 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 | « remoting/protocol/protocol_test_client.cc ('k') | webkit/appcache/appcache_group_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/util.cc
diff --git a/remoting/protocol/util.cc b/remoting/protocol/util.cc
index 5a23c934bb369d6d7a3b93689ac8d6fd7faa8062..a12040b0346b09d5af94f012aedacf41142ca879 100644
--- a/remoting/protocol/util.cc
+++ b/remoting/protocol/util.cc
@@ -18,7 +18,7 @@ scoped_refptr<net::IOBufferWithSize> SerializeAndFrameMessage(
// int32 of the serialized message size for framing.
const int kExtraBytes = sizeof(int32);
int size = msg.ByteSize() + kExtraBytes;
- scoped_refptr<net::IOBufferWithSize> buffer = new net::IOBufferWithSize(size);
+ scoped_refptr<net::IOBufferWithSize> buffer(new net::IOBufferWithSize(size));
talk_base::SetBE32(buffer->data(), msg.GetCachedSize());
msg.SerializeWithCachedSizesToArray(
reinterpret_cast<uint8*>(buffer->data()) + kExtraBytes);
« no previous file with comments | « remoting/protocol/protocol_test_client.cc ('k') | webkit/appcache/appcache_group_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698