Address cpplint issue "An else should appear on the same line as the preceding } [whitespace/newline] [4]"

This commit is contained in:
Ales Pergl 2017-04-05 12:00:35 +02:00
parent 9b7fbd4d22
commit 64bf0d210e
2 changed files with 3 additions and 6 deletions

View file

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

View file

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