aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/tag.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-01-13 14:41:29 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-13 14:41:29 -0800
commite8e304e27b38f78123a9bbdb981a989d999fe24f (patch)
tree71cbdbd11a1eb0933f31cd0a3dba8d46573b48a1 /src/node/tag.cc
parenta8185661f57d2dbf8ad808909f5cf67e3f400b87 (diff)
Run clang-format against node
Diffstat (limited to 'src/node/tag.cc')
-rw-r--r--src/node/tag.cc15
1 files changed, 6 insertions, 9 deletions
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<Value> *tag, Persistent<Value> *call)
- : persist_tag(tag), persist_call(call) {
- }
+ : persist_tag(tag), persist_call(call) {}
~tag() {
persist_tag->Dispose();
@@ -71,24 +70,24 @@ void *CreateTag(Handle<Value> tag, Handle<Value> call) {
NanAssignPersistent(*persist_call, call);
}
struct tag *tag_struct = new struct tag(persist_tag, persist_call);
- return reinterpret_cast<void*>(tag_struct);
+ return reinterpret_cast<void *>(tag_struct);
}
Handle<Value> GetTagHandle(void *tag) {
NanEscapableScope();
- struct tag *tag_struct = reinterpret_cast<struct tag*>(tag);
+ struct tag *tag_struct = reinterpret_cast<struct tag *>(tag);
Handle<Value> tag_value = NanNew<Value>(*tag_struct->persist_tag);
return NanEscapeScope(tag_value);
}
bool TagHasCall(void *tag) {
- struct tag *tag_struct = reinterpret_cast<struct tag*>(tag);
+ struct tag *tag_struct = reinterpret_cast<struct tag *>(tag);
return tag_struct->persist_call != NULL;
}
Handle<Value> TagGetCall(void *tag) {
NanEscapableScope();
- struct tag *tag_struct = reinterpret_cast<struct tag*>(tag);
+ struct tag *tag_struct = reinterpret_cast<struct tag *>(tag);
if (tag_struct->persist_call == NULL) {
return NanEscapeScope(NanNull());
}
@@ -96,9 +95,7 @@ Handle<Value> TagGetCall(void *tag) {
return NanEscapeScope(call_value);
}
-void DestroyTag(void *tag) {
- delete reinterpret_cast<struct tag*>(tag);
-}
+void DestroyTag(void *tag) { delete reinterpret_cast<struct tag *>(tag); }
} // namespace node
} // namespace grpc