chore: cleanup usages of const char* (#29906)
This commit is contained in:
parent
f6531166ae
commit
95a9ff952c
8 changed files with 18 additions and 19 deletions
|
@ -163,7 +163,7 @@ void RegisterSchemesAsPrivileged(gin_helper::ErrorThrower thrower,
|
|||
|
||||
namespace {
|
||||
|
||||
const char* kBuiltinSchemes[] = {
|
||||
const char* const kBuiltinSchemes[] = {
|
||||
"about", "file", "http", "https", "data", "filesystem",
|
||||
};
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ namespace api {
|
|||
|
||||
namespace {
|
||||
|
||||
const char* kUserDataKey = "WebRequest";
|
||||
const char kUserDataKey[] = "WebRequest";
|
||||
|
||||
// BrowserContext <=> WebRequest relationship.
|
||||
struct UserData : public base::SupportsUserData::Data {
|
||||
|
|
|
@ -17,15 +17,15 @@ namespace electron {
|
|||
// This class implements the enumerator for reading all the attributes in
|
||||
// GPUInfo into a dictionary.
|
||||
class GPUInfoEnumerator final : public gpu::GPUInfo::Enumerator {
|
||||
const char* kGPUDeviceKey = "gpuDevice";
|
||||
const char* kVideoDecodeAcceleratorSupportedProfileKey =
|
||||
const char* const kGPUDeviceKey = "gpuDevice";
|
||||
const char* const kVideoDecodeAcceleratorSupportedProfileKey =
|
||||
"videoDecodeAcceleratorSupportedProfile";
|
||||
const char* kVideoEncodeAcceleratorSupportedProfileKey =
|
||||
const char* const kVideoEncodeAcceleratorSupportedProfileKey =
|
||||
"videoEncodeAcceleratorSupportedProfile";
|
||||
const char* kImageDecodeAcceleratorSupportedProfileKey =
|
||||
const char* const kImageDecodeAcceleratorSupportedProfileKey =
|
||||
"imageDecodeAcceleratorSupportedProfile";
|
||||
const char* kAuxAttributesKey = "auxAttributes";
|
||||
const char* kOverlayInfo = "overlayInfo";
|
||||
const char* const kAuxAttributesKey = "auxAttributes";
|
||||
const char* const kOverlayInfo = "overlayInfo";
|
||||
|
||||
public:
|
||||
GPUInfoEnumerator();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue