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:
parent
7079843bc8
commit
c427c1723d
@ -29,9 +29,7 @@ enum class Priority {
|
||||
class PriorityValue
|
||||
: public webrtc::StrongAlias<class PriorityValueTag, uint16_t> {
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user