| Code-Review | +1 |
for (const T& value_ : supported_values) {Drop `_`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
for (const T& value_ : supported_values) {Drop `_`
I appended the `_` here to avoid a shadowing warning with the `value` arg. Maybe this variable could be renamed to something else?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
jjDrop `_`
I appended the `_` here to avoid a shadowing warning with the `value` arg. Maybe this variable could be renamed to something else?
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
for (const T& value_ : supported_values) {jjDrop `_`
I appended the `_` here to avoid a shadowing warning with the `value` arg. Maybe this variable could be renamed to something else?
`val` is fine. `_` is reserved for member variables.
supported_values_str.push_back(base::ToString(val));Oh yeah, does `.Ascii()` work instead?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +0 |
supported_values_str.push_back(base::ToString(val));Oh yeah, does `.Ascii()` work instead?
`T` here is `const int`, so unfortunately not:
```
../../third_party/blink/renderer/modules/webcodecs/audio_encoder.cc:67:39: error: member reference base type 'const int' is not a structure or union
67 | supported_values_str.push_back(val.Ascii());
| ~~~^~~~~~
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
supported_values_str.push_back(base::ToString(val));jjOh yeah, does `.Ascii()` work instead?
`T` here is `const int`, so unfortunately not:
```
../../third_party/blink/renderer/modules/webcodecs/audio_encoder.cc:67:39: error: member reference base type 'const int' is not a structure or union
67 | supported_values_str.push_back(val.Ascii());
| ~~~^~~~~~
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |