From c427c1723ddec4b632692b1ae90346a3692b33f5 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Thu, 1 Aug 2024 15:22:34 +0000 Subject: [PATCH] Make PriorityValue constructor explicit Bug: webrtc:42225365 Change-Id: I8d0e6cf0f2d6f5677cb10e4b5ea32121dab733bd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/358301 Auto-Submit: Florent Castelli Commit-Queue: Florent Castelli Commit-Queue: Harald Alvestrand Reviewed-by: Harald Alvestrand Cr-Commit-Position: refs/heads/main@{#42715} --- api/priority.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/priority.h b/api/priority.h index da845f7be4..2735c2c282 100644 --- a/api/priority.h +++ b/api/priority.h @@ -29,9 +29,7 @@ enum class Priority { class PriorityValue : public webrtc::StrongAlias { public: - // TODO(bugs.webrtc.org/42225365): Make explicit after downstream projects - // have updated - PriorityValue(Priority priority) { // NOLINT(runtime/explicit) + explicit PriorityValue(Priority priority) { switch (priority) { case Priority::kVeryLow: value_ = 128;