Makes PacketResult::GetSentPacket const.

Followup on https://webrtc-review.googlesource.com/c/src/+/108281

Bug: webrtc:9934
Change-Id: I39e476880d04ad593b5eb0d545301fe6e61e4ca3
Reviewed-on: https://webrtc-review.googlesource.com/c/108460
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25425}
This commit is contained in:
Sebastian Jansson 2018-10-29 18:03:09 +01:00 committed by Commit Bot
parent b33168e20f
commit 3df6e715ec

View File

@ -130,7 +130,7 @@ struct PacketResult {
Timestamp receive_time = Timestamp::PlusInfinity();
// TODO(bugs.webrtc.org/9934): Remove this when sent_packet is made
// non-optional.
const SentPacket& GetSentPacket() {
const SentPacket& GetSentPacket() const {
RTC_DCHECK(sent_packet.has_value());
return *sent_packet;
}