Address cpplint issue "Missing space before ( in if( [whitespace/parens] [5]"

This commit is contained in:
Ales Pergl 2017-04-03 13:34:01 +02:00
parent 29f3332276
commit 91cff2e6c7
5 changed files with 136 additions and 135 deletions

View file

@ -10,9 +10,9 @@ brightray::Notification* NotificationPresenterWin7::CreateNotificationObject(
Win32Notification* NotificationPresenterWin7::GetNotificationObjectByRef(
const DesktopNotificationController::Notification& ref) {
for(auto n : this->notifications()) {
for (auto n : this->notifications()) {
auto w32n = static_cast<Win32Notification*>(n);
if(w32n->GetRef() == ref)
if (w32n->GetRef() == ref)
return w32n;
}
@ -21,9 +21,9 @@ Win32Notification* NotificationPresenterWin7::GetNotificationObjectByRef(
Win32Notification* NotificationPresenterWin7::GetNotificationObjectByTag(
const std::string& tag) {
for(auto n : this->notifications()) {
for (auto n : this->notifications()) {
auto w32n = static_cast<Win32Notification*>(n);
if(w32n->GetTag() == tag)
if (w32n->GetTag() == tag)
return w32n;
}
@ -33,13 +33,13 @@ Win32Notification* NotificationPresenterWin7::GetNotificationObjectByTag(
void NotificationPresenterWin7::OnNotificationClicked(
Notification& notification) {
auto n = GetNotificationObjectByRef(notification);
if(n) n->NotificationClicked();
if (n) n->NotificationClicked();
}
void NotificationPresenterWin7::OnNotificationDismissed(
Notification& notification) {
auto n = GetNotificationObjectByRef(notification);
if(n) n->NotificationDismissed();
if (n) n->NotificationDismissed();
}
}