Skip to content

Commit

Permalink
don't take ref to ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 23, 2020
1 parent da2438a commit e72f99f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shell/browser/api/electron_api_power_monitor_mac.mm
Expand Up @@ -61,25 +61,25 @@ - (void)addEmitter:(electron::api::PowerMonitor*)monitor_ {
}

- (void)isSuspending:(NSNotification*)notify {
for (auto*& emitter : self->emitters) {
for (auto* emitter : self->emitters) {
emitter->Emit("suspend");
}
}

- (void)isResuming:(NSNotification*)notify {
for (auto*& emitter : self->emitters) {
for (auto* emitter : self->emitters) {
emitter->Emit("resume");
}
}

- (void)onScreenLocked:(NSNotification*)notification {
for (auto*& emitter : self->emitters) {
for (auto* emitter : self->emitters) {
emitter->Emit("lock-screen");
}
}

- (void)onScreenUnlocked:(NSNotification*)notification {
for (auto*& emitter : self->emitters) {
for (auto* emitter : self->emitters) {
emitter->Emit("unlock-screen");
}
}
Expand Down

0 comments on commit e72f99f

Please sign in to comment.