mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: modernize-avoid-c-arrays (#44834)
use string_view for constants used in methods that take string_view args Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr char kDeviceNameKey[] = "productName";
|
||||
constexpr char kDeviceIdKey[] = "deviceId";
|
||||
constexpr std::string_view kDeviceNameKey = "productName";
|
||||
constexpr std::string_view kDeviceIdKey = "deviceId";
|
||||
constexpr int kUsbClassMassStorage = 0x08;
|
||||
|
||||
bool CanStorePersistentEntry(const device::mojom::UsbDeviceInfo& device_info) {
|
||||
|
||||
Reference in New Issue
Block a user