aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-06-28 21:21:21 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-06-28 21:21:21 +0200
commit29228c4089431d0e65749421f43aafd05694f376 (patch)
tree82afc084bf146b04edc16b6a974a40356f1a04c9
parente9559d028ee5d17c24e498b6144cb67e8d0b3d0c (diff)
downloadandroid-node-v8-29228c4089431d0e65749421f43aafd05694f376.tar.gz
android-node-v8-29228c4089431d0e65749421f43aafd05694f376.tar.bz2
android-node-v8-29228c4089431d0e65749421f43aafd05694f376.zip
src: fix readability/braces cpplint warnings
PR-URL: https://github.com/nodejs/node/pull/7462 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
-rw-r--r--src/cares_wrap.cc4
-rw-r--r--src/inspector_agent.cc10
-rw-r--r--src/node_http_parser.cc4
-rw-r--r--src/node_watchdog.cc2
4 files changed, 10 insertions, 10 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc
index 88ce802dfe..f78fe52871 100644
--- a/src/cares_wrap.cc
+++ b/src/cares_wrap.cc
@@ -371,11 +371,11 @@ class QueryWrap : public AsyncWrap {
// Subclasses should implement the appropriate Parse method.
virtual void Parse(unsigned char* buf, int len) {
UNREACHABLE();
- };
+ }
virtual void Parse(struct hostent* host) {
UNREACHABLE();
- };
+ }
};
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index 2d28f96be0..7cd7f4e5c9 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -575,23 +575,23 @@ Agent::~Agent() {
void Agent::Start(v8::Platform* platform, int port, bool wait) {
impl->Start(platform, port, wait);
-};
+}
void Agent::Stop() {
impl->Stop();
-};
+}
bool Agent::IsStarted() {
return impl->IsStarted();
-};
+}
bool Agent::IsConnected() {
return impl->IsConnected();
-};
+}
void Agent::WaitForDisconnect() {
impl->WaitForDisconnect();
-};
+}
} // namespace inspector
} // namespace node
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index fd5e7c8e21..f757cd6797 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -107,9 +107,9 @@ struct StringPtr {
void Update(const char* str, size_t size) {
- if (str_ == nullptr)
+ if (str_ == nullptr) {
str_ = str;
- else if (on_heap_ || str_ + size_ != str) {
+ } else if (on_heap_ || str_ + size_ != str) {
// Non-consecutive input, make a copy on the heap.
// TODO(bnoordhuis) Use slab allocation, O(n) allocs is bad.
char* s = new char[size_ + size];
diff --git a/src/node_watchdog.cc b/src/node_watchdog.cc
index 8a067c27f3..9c776973a2 100644
--- a/src/node_watchdog.cc
+++ b/src/node_watchdog.cc
@@ -292,7 +292,7 @@ SigintWatchdogHelper::SigintWatchdogHelper()
CHECK_EQ(0, uv_mutex_init(&mutex_));
CHECK_EQ(0, uv_mutex_init(&list_mutex_));
-};
+}
SigintWatchdogHelper::~SigintWatchdogHelper() {