mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: cleanup usages of const char* (#29906)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user