|
@@ -199,7 +199,7 @@ NameChangeSender::sendNext() {
|
|
|
|
|
|
// If queue isn't empty, then get one from the front. Note we leave
|
|
// If queue isn't empty, then get one from the front. Note we leave
|
|
// it on the front of the queue until we successfully send it.
|
|
// it on the front of the queue until we successfully send it.
|
|
- if (send_queue_.size()) {
|
|
|
|
|
|
+ if (!send_queue_.empty()) {
|
|
ncr_to_send_ = send_queue_.front();
|
|
ncr_to_send_ = send_queue_.front();
|
|
|
|
|
|
// @todo start defense timer
|
|
// @todo start defense timer
|
|
@@ -262,7 +262,7 @@ NameChangeSender::invokeSendHandler(const NameChangeSender::Result result) {
|
|
|
|
|
|
void
|
|
void
|
|
NameChangeSender::skipNext() {
|
|
NameChangeSender::skipNext() {
|
|
- if (send_queue_.size()) {
|
|
|
|
|
|
+ if (!send_queue_.empty()) {
|
|
// Discards the request at the front of the queue.
|
|
// Discards the request at the front of the queue.
|
|
send_queue_.pop_front();
|
|
send_queue_.pop_front();
|
|
}
|
|
}
|