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

Unified Diff: net/quic/congestion_control/send_algorithm_simulator.cc

Issue 612323013: QUIC - (no behavior change) s/NULL/nullptr/g in .../quic/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: net/quic/congestion_control/send_algorithm_simulator.cc
diff --git a/net/quic/congestion_control/send_algorithm_simulator.cc b/net/quic/congestion_control/send_algorithm_simulator.cc
index 3864a747e7da14afcba3c564f8d0e98d8be07722..f08acffce663d4fbc59e88c36b0bc8715ccabc4b 100644
--- a/net/quic/congestion_control/send_algorithm_simulator.cc
+++ b/net/quic/congestion_control/send_algorithm_simulator.cc
@@ -113,7 +113,7 @@ void SendAlgorithmSimulator::TransferBytes(QuicByteCount max_bytes,
SendAlgorithmSimulator::PacketEvent SendAlgorithmSimulator::NextSendEvent() {
QuicTime::Delta next_send_time = QuicTime::Delta::Infinite();
- Transfer* transfer = NULL;
+ Transfer* transfer = nullptr;
for (vector<Transfer>::iterator it = pending_transfers_.begin();
it != pending_transfers_.end(); ++it) {
// If we've already sent enough bytes, wait for them to be acked.
@@ -143,12 +143,12 @@ SendAlgorithmSimulator::PacketEvent SendAlgorithmSimulator::NextSendEvent() {
SendAlgorithmSimulator::PacketEvent SendAlgorithmSimulator::NextAckEvent() {
if (sent_packets_.empty()) {
DVLOG(1) << "No outstanding packets to ack for any transfer.";
- return PacketEvent(QuicTime::Delta::Infinite(), NULL);
+ return PacketEvent(QuicTime::Delta::Infinite(), nullptr);
}
// For each connection, find the next acked packet.
QuicTime::Delta ack_time = QuicTime::Delta::Infinite();
- Transfer* transfer = NULL;
+ Transfer* transfer = nullptr;
for (vector<Transfer>::iterator it = pending_transfers_.begin();
it != pending_transfers_.end(); ++it) {
QuicTime::Delta transfer_ack_time = FindNextAcked(&(*it));
« no previous file with comments | « net/quic/congestion_control/send_algorithm_simulator.h ('k') | net/quic/congestion_control/tcp_loss_algorithm_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698