Make PriorityValue constructor explicit

Bug: webrtc:42225365
Change-Id: I8d0e6cf0f2d6f5677cb10e4b5ea32121dab733bd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/358301
Auto-Submit: Florent Castelli <orphis@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42715}
This commit is contained in:
Florent Castelli 2024-08-01 15:22:34 +00:00 committed by WebRTC LUCI CQ
parent 7079843bc8
commit c427c1723d

View File

@ -29,9 +29,7 @@ enum class Priority {
class PriorityValue class PriorityValue
: public webrtc::StrongAlias<class PriorityValueTag, uint16_t> { : public webrtc::StrongAlias<class PriorityValueTag, uint16_t> {
public: public:
// TODO(bugs.webrtc.org/42225365): Make explicit after downstream projects explicit PriorityValue(Priority priority) {
// have updated
PriorityValue(Priority priority) { // NOLINT(runtime/explicit)
switch (priority) { switch (priority) {
case Priority::kVeryLow: case Priority::kVeryLow:
value_ = 128; value_ = 128;