I am not good at C++ at all

This commit is contained in:
Paul Betts 2015-10-19 18:23:13 -07:00
parent 4a4b829cfc
commit 63417bc975
3 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ class FilePath;
namespace mate { namespace mate {
class Arguments; class Arguments;
} }
namespace atom { namespace atom {
namespace api { namespace api {

View file

@ -173,7 +173,7 @@ ProcessSingleton::NotifyResult Browser::GetSingleInstanceResult() {
return process_notify_result_; return process_notify_result_;
} }
void Browser::SetSingleInstanceCallback(const ProcessSingleton::NotificationCallback& callback) { void Browser::SetSingleInstanceCallback(ProcessSingleton::NotificationCallback callback) {
process_notify_callback_ = callback; process_notify_callback_ = callback;
process_notify_callback_set_ = true; process_notify_callback_set_ = true;
} }

View file

@ -67,7 +67,7 @@ class Browser : public WindowListObserver {
void ClearRecentDocuments(); void ClearRecentDocuments();
ProcessSingleton::NotifyResult GetSingleInstanceResult(); ProcessSingleton::NotifyResult GetSingleInstanceResult();
void SetSingleInstanceCallback(const ProcessSingleton::NotificationCallback& callback); void SetSingleInstanceCallback(ProcessSingleton::NotificationCallback callback);
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
// Bounce the dock icon. // Bounce the dock icon.
@ -176,7 +176,7 @@ class Browser : public WindowListObserver {
scoped_ptr<AtomProcessSingleton> process_singleton_; scoped_ptr<AtomProcessSingleton> process_singleton_;
ProcessSingleton::NotifyResult process_notify_result_; ProcessSingleton::NotifyResult process_notify_result_;
const ProcessSingleton::NotificationCallback process_notify_callback_; ProcessSingleton::NotificationCallback process_notify_callback_;
bool process_notify_callback_set_; bool process_notify_callback_set_;
#if defined(OS_WIN) #if defined(OS_WIN)