the al patch looks good so sending as is
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (std::string_view(subsystem) == "input" &&Could we rename `subsystem` to `subsystem_cstr` and then add a `std::string_view` variable, like we do for `path`, rather than constructing a new `string_view` for each branch of the `if`? (Similarly for `action`.)
Alternatively, have you considered doing a bigger refactor to make `device::udev_device_get_property_value` return a nice C++ string type (e.g. `std::optional<std::string_view>`)?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (std::string_view(subsystem) == "input" &&Could we rename `subsystem` to `subsystem_cstr` and then add a `std::string_view` variable, like we do for `path`, rather than constructing a new `string_view` for each branch of the `if`? (Similarly for `action`.)
Alternatively, have you considered doing a bigger refactor to make `device::udev_device_get_property_value` return a nice C++ string type (e.g. `std::optional<std::string_view>`)?
Sure thing - I'll look into doing a bigger refactor. going to mark this wip for now
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Zekun JiangCould we rename `subsystem` to `subsystem_cstr` and then add a `std::string_view` variable, like we do for `path`, rather than constructing a new `string_view` for each branch of the `if`? (Similarly for `action`.)
Alternatively, have you considered doing a bigger refactor to make `device::udev_device_get_property_value` return a nice C++ string type (e.g. `std::optional<std::string_view>`)?
Sure thing - I'll look into doing a bigger refactor. going to mark this wip for now
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (std::string_view(subsystem) == "input" &&Zekun JiangCould we rename `subsystem` to `subsystem_cstr` and then add a `std::string_view` variable, like we do for `path`, rather than constructing a new `string_view` for each branch of the `if`? (Similarly for `action`.)
Alternatively, have you considered doing a bigger refactor to make `device::udev_device_get_property_value` return a nice C++ string type (e.g. `std::optional<std::string_view>`)?
Zekun JiangSure thing - I'll look into doing a bigger refactor. going to mark this wip for now
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fix unsafe buffer usage in ui/events/ozone/device/udev/device_manager_udev.cc
Switched to functions that return std::string instead of char* in device_manager_udev.cc.
Initial patchset generated by headless gemini-cli using:
//agents/prompts/projects/spanification/run.py
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |