From e8e304e27b38f78123a9bbdb981a989d999fe24f Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 13 Jan 2015 14:41:29 -0800 Subject: Run clang-format against node --- src/node/tag.cc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/node/tag.cc') diff --git a/src/node/tag.cc b/src/node/tag.cc index 0a663505a0..dc8e523e12 100644 --- a/src/node/tag.cc +++ b/src/node/tag.cc @@ -46,8 +46,7 @@ using v8::Value; struct tag { tag(Persistent *tag, Persistent *call) - : persist_tag(tag), persist_call(call) { - } + : persist_tag(tag), persist_call(call) {} ~tag() { persist_tag->Dispose(); @@ -71,24 +70,24 @@ void *CreateTag(Handle tag, Handle call) { NanAssignPersistent(*persist_call, call); } struct tag *tag_struct = new struct tag(persist_tag, persist_call); - return reinterpret_cast(tag_struct); + return reinterpret_cast(tag_struct); } Handle GetTagHandle(void *tag) { NanEscapableScope(); - struct tag *tag_struct = reinterpret_cast(tag); + struct tag *tag_struct = reinterpret_cast(tag); Handle tag_value = NanNew(*tag_struct->persist_tag); return NanEscapeScope(tag_value); } bool TagHasCall(void *tag) { - struct tag *tag_struct = reinterpret_cast(tag); + struct tag *tag_struct = reinterpret_cast(tag); return tag_struct->persist_call != NULL; } Handle TagGetCall(void *tag) { NanEscapableScope(); - struct tag *tag_struct = reinterpret_cast(tag); + struct tag *tag_struct = reinterpret_cast(tag); if (tag_struct->persist_call == NULL) { return NanEscapeScope(NanNull()); } @@ -96,9 +95,7 @@ Handle TagGetCall(void *tag) { return NanEscapeScope(call_value); } -void DestroyTag(void *tag) { - delete reinterpret_cast(tag); -} +void DestroyTag(void *tag) { delete reinterpret_cast(tag); } } // namespace node } // namespace grpc -- cgit v1.2.3