Address cpplint issue "{ should almost always be at the end of the previous line [whitespace/braces] [4]"
This commit is contained in:
parent
63eeb96e71
commit
29f3332276
9 changed files with 152 additions and 304 deletions
|
@ -4,16 +4,13 @@
|
|||
namespace brightray {
|
||||
|
||||
brightray::Notification* NotificationPresenterWin7::CreateNotificationObject(
|
||||
NotificationDelegate* delegate)
|
||||
{
|
||||
NotificationDelegate* delegate) {
|
||||
return new Win32Notification(delegate, this);
|
||||
}
|
||||
|
||||
Win32Notification* NotificationPresenterWin7::GetNotificationObjectByRef(
|
||||
const DesktopNotificationController::Notification& ref)
|
||||
{
|
||||
for(auto n : this->notifications())
|
||||
{
|
||||
const DesktopNotificationController::Notification& ref) {
|
||||
for(auto n : this->notifications()) {
|
||||
auto w32n = static_cast<Win32Notification*>(n);
|
||||
if(w32n->GetRef() == ref)
|
||||
return w32n;
|
||||
|
@ -23,10 +20,8 @@ Win32Notification* NotificationPresenterWin7::GetNotificationObjectByRef(
|
|||
}
|
||||
|
||||
Win32Notification* NotificationPresenterWin7::GetNotificationObjectByTag(
|
||||
const std::string& tag)
|
||||
{
|
||||
for(auto n : this->notifications())
|
||||
{
|
||||
const std::string& tag) {
|
||||
for(auto n : this->notifications()) {
|
||||
auto w32n = static_cast<Win32Notification*>(n);
|
||||
if(w32n->GetTag() == tag)
|
||||
return w32n;
|
||||
|
@ -36,15 +31,13 @@ Win32Notification* NotificationPresenterWin7::GetNotificationObjectByTag(
|
|||
}
|
||||
|
||||
void NotificationPresenterWin7::OnNotificationClicked(
|
||||
Notification& notification)
|
||||
{
|
||||
Notification& notification) {
|
||||
auto n = GetNotificationObjectByRef(notification);
|
||||
if(n) n->NotificationClicked();
|
||||
}
|
||||
|
||||
void NotificationPresenterWin7::OnNotificationDismissed(
|
||||
Notification& notification)
|
||||
{
|
||||
Notification& notification) {
|
||||
auto n = GetNotificationObjectByRef(notification);
|
||||
if(n) n->NotificationDismissed();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue