Address cpplint issue "An else should appear on the same line as the preceding } [whitespace/newline] [4]"
This commit is contained in:
parent
9b7fbd4d22
commit
64bf0d210e
2 changed files with 3 additions and 6 deletions
|
@ -32,8 +32,7 @@ static COLORREF GetAccentColor() {
|
||||||
GetGValue(color),
|
GetGValue(color),
|
||||||
GetBValue(color));
|
GetBValue(color));
|
||||||
success = true;
|
success = true;
|
||||||
}
|
} else if (
|
||||||
else if (
|
|
||||||
RegQueryValueEx(hkey, TEXT("ColorizationColor"), nullptr,
|
RegQueryValueEx(hkey, TEXT("ColorizationColor"), nullptr,
|
||||||
&type,
|
&type,
|
||||||
reinterpret_cast<BYTE*>(&color),
|
reinterpret_cast<BYTE*>(&color),
|
||||||
|
@ -517,8 +516,7 @@ void DesktopNotificationController::Toast::UpdateBufferSize() {
|
||||||
width = width * maxDimSize / height;
|
width = width * maxDimSize / height;
|
||||||
height = maxDimSize;
|
height = maxDimSize;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (width > maxDimSize) {
|
if (width > maxDimSize) {
|
||||||
height = height * maxDimSize / width;
|
height = height * maxDimSize / width;
|
||||||
width = maxDimSize;
|
width = maxDimSize;
|
||||||
|
|
|
@ -42,8 +42,7 @@ void Win32Notification::Show(
|
||||||
existing->tag_.clear();
|
existing->tag_.clear();
|
||||||
this->notification_ref_ = std::move(existing->notification_ref_);
|
this->notification_ref_ = std::move(existing->notification_ref_);
|
||||||
this->notification_ref_.Set(title, msg, image);
|
this->notification_ref_.Set(title, msg, image);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this->notification_ref_ = presenter->AddNotification(title, msg, image);
|
this->notification_ref_ = presenter->AddNotification(title, msg, image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue