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

Unified Diff: net/dns/dns_query.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: net/dns/dns_query.cc
diff --git a/net/dns/dns_query.cc b/net/dns/dns_query.cc
index 530508a61de1b3f051e5f7139aeef16ca3cce0bd..cb81bd0a74f89b3c199a5231986f73aed5b1d03a 100644
--- a/net/dns/dns_query.cc
+++ b/net/dns/dns_query.cc
@@ -23,8 +23,8 @@ DnsQuery::DnsQuery(uint16 id, const base::StringPiece& qname, uint16 qtype)
DCHECK(!DNSDomainToString(qname).empty());
// QNAME + QTYPE + QCLASS
size_t question_size = qname_size_ + sizeof(uint16) + sizeof(uint16);
- io_buffer_ = new IOBufferWithSize(sizeof(dns_protocol::Header) +
- question_size);
+ io_buffer_ =
+ new IOBufferWithSize(sizeof(dns_protocol::Header) + question_size);
dns_protocol::Header* header =
reinterpret_cast<dns_protocol::Header*>(io_buffer_->data());
memset(header, 0, sizeof(dns_protocol::Header));
@@ -73,7 +73,8 @@ base::StringPiece DnsQuery::question() const {
DnsQuery::DnsQuery(const DnsQuery& orig, uint16 id) {
qname_size_ = orig.qname_size_;
io_buffer_ = new IOBufferWithSize(orig.io_buffer()->size());
- memcpy(io_buffer_.get()->data(), orig.io_buffer()->data(),
+ memcpy(io_buffer_.get()->data(),
+ orig.io_buffer()->data(),
io_buffer_.get()->size());
dns_protocol::Header* header =
reinterpret_cast<dns_protocol::Header*>(io_buffer_->data());

Powered by Google App Engine
This is Rietveld 408576698