Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2919)

Unified Diff: runtime/bin/eventhandler.cc

Issue 1800863002: Cleanup in //runtime/bin (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/eventhandler.h ('k') | runtime/bin/eventhandler_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler.cc
diff --git a/runtime/bin/eventhandler.cc b/runtime/bin/eventhandler.cc
index bb9a7fec383e7a9daad1f4f77b76114481c2ecf6..704cc8568abbe5903372313ac9760b3bcf37793c 100644
--- a/runtime/bin/eventhandler.cc
+++ b/runtime/bin/eventhandler.cc
@@ -10,11 +10,9 @@
#include "include/dart_api.h"
-
namespace dart {
namespace bin {
-
void TimeoutQueue::UpdateTimeout(Dart_Port port, int64_t timeout) {
// Find port if present.
Timeout* last = NULL;
@@ -47,8 +45,8 @@ void TimeoutQueue::UpdateTimeout(Dart_Port port, int64_t timeout) {
next_timeout_ = NULL;
current = timeouts_;
while (current != NULL) {
- if (next_timeout_ == NULL ||
- current->timeout() < next_timeout_->timeout()) {
+ if ((next_timeout_ == NULL) ||
+ (current->timeout() < next_timeout_->timeout())) {
next_timeout_ = current;
}
current = current->next();
@@ -78,7 +76,9 @@ void EventHandler::NotifyShutdownDone() {
void EventHandler::Stop() {
- if (event_handler == NULL) return;
+ if (event_handler == NULL) {
+ return;
+ }
// Wait until it has stopped.
{
@@ -101,7 +101,9 @@ void EventHandler::Stop() {
EventHandlerImplementation* EventHandler::delegate() {
- if (event_handler == NULL) return NULL;
+ if (event_handler == NULL) {
+ return NULL;
+ }
return &event_handler->delegate_;
}
« no previous file with comments | « runtime/bin/eventhandler.h ('k') | runtime/bin/eventhandler_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698