chore: cleanup usages of const char* (#29906)

This commit is contained in:
David Sanders 2021-07-01 17:51:52 -07:00 committed by GitHub
parent f6531166ae
commit 95a9ff952c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 19 deletions

View file

@ -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();