refactor: Chromium code style for enum classes (#26165)

This commit is contained in:
Milan Burda 2020-10-27 18:51:45 +01:00 committed by GitHub
parent dbf2931f0e
commit 1c99a9b425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 300 additions and 295 deletions

View file

@ -33,19 +33,19 @@ struct Converter<electron::TrayIcon::IconType> {
std::string mode;
if (ConvertFromV8(isolate, val, &mode)) {
if (mode == "none") {
*out = IconType::None;
*out = IconType::kNone;
return true;
} else if (mode == "info") {
*out = IconType::Info;
*out = IconType::kInfo;
return true;
} else if (mode == "warning") {
*out = IconType::Warning;
*out = IconType::kWarning;
return true;
} else if (mode == "error") {
*out = IconType::Error;
*out = IconType::kError;
return true;
} else if (mode == "custom") {
*out = IconType::Custom;
*out = IconType::kCustom;
return true;
}
}