From b2217474c1ed4490e3916f5acc4049958d6a61eb Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 30 Jul 2014 21:18:26 +0800 Subject: [PATCH] Nits: Fix code style. --- atom/browser/api/atom_api_shortcut.cc | 6 ++++-- atom/browser/api/atom_api_shortcut.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/atom/browser/api/atom_api_shortcut.cc b/atom/browser/api/atom_api_shortcut.cc index 0613215..4fc8847 100644 --- a/atom/browser/api/atom_api_shortcut.cc +++ b/atom/browser/api/atom_api_shortcut.cc @@ -69,11 +69,13 @@ void Shortcut::Register() { } void Shortcut::Unregister() { - GlobalShortcutListener::GetInstance()->UnregisterAccelerator(accelerator_, this); + GlobalShortcutListener::GetInstance()->UnregisterAccelerator( + accelerator_, this); } bool Shortcut::IsRegistered() { - return GlobalShortcutListener::GetInstance()->IsAcceleratorRegistered(accelerator_); + return GlobalShortcutListener::GetInstance()->IsAcceleratorRegistered( + accelerator_); } // static diff --git a/atom/browser/api/atom_api_shortcut.h b/atom/browser/api/atom_api_shortcut.h index b71dad3..a8dc9b5 100644 --- a/atom/browser/api/atom_api_shortcut.h +++ b/atom/browser/api/atom_api_shortcut.h @@ -42,8 +42,8 @@ class Shortcut : public mate::EventEmitter, return accelerator_; } - void OnActive() ; - void OnFailed(const std::string& error_msg) ; + void OnActive(); + void OnFailed(const std::string& error_msg); // GlobalShortcutListener::Observer implementation. virtual void OnKeyPressed(const ui::Accelerator& accelerator) OVERRIDE; -- 2.7.4