@@ -15,67 +15,66 @@ namespace rr {
1515 Base (VALUE self) : Wrapper<v8::ReturnValue<V8Type>>(self) {}
1616
1717 static VALUE Set (VALUE self, VALUE handle) {
18- Base<V8Type, RRType> ret (self);
18+ Base ret (self);
1919 Locker lock (ret->GetIsolate ());
2020 v8::Local<V8Type> value ((RRType (handle)));
2121 ret->Set (value);
2222 return Qnil;
2323 }
2424
2525 static VALUE Set_bool (VALUE self, VALUE value) {
26- Base<V8Type, RRType> ret (self);
26+ Base ret (self);
2727 Locker lock (ret->GetIsolate ());
2828 ret->Set ((bool )Bool (value));
2929 return Qnil;
3030 }
3131
3232 static VALUE Set_double (VALUE self, VALUE value) {
33- Base<V8Type, RRType> ret (self);
33+ Base ret (self);
3434 Locker lock (ret->GetIsolate ());
3535 ret->Set (NUM2DBL (value));
3636 return Qnil;
3737 }
3838
3939 static VALUE Set_int32_t (VALUE self, VALUE i) {
40- Base<V8Type, RRType> ret (self);
40+ Base ret (self);
4141 Locker lock (ret->GetIsolate ());
4242 ret->Set (NUM2INT (i));
4343 return Qnil;
4444 }
4545
4646 static VALUE Set_uint32_t (VALUE self, VALUE i) {
47- Base<V8Type, RRType> ret (self);
47+ Base ret (self);
4848 Locker lock (ret->GetIsolate ());
4949 ret->Set (NUM2UINT (i));
5050 return Qnil;
5151 }
5252
5353 static VALUE SetNull (VALUE self) {
54- Base<V8Type, RRType> ret (self);
54+ Base ret (self);
5555 Locker lock (ret->GetIsolate ());
5656 ret->SetNull ();
5757 return Qnil;
5858 }
5959
6060 static VALUE SetUndefined (VALUE self) {
61- Base<V8Type, RRType> ret (self);
61+ Base ret (self);
6262 Locker lock (ret->GetIsolate ());
6363 ret->SetUndefined ();
6464 return Qnil;
6565 }
6666
6767 static VALUE SetEmptyString (VALUE self) {
68- Base<V8Type, RRType> ret (self);
68+ Base ret (self);
6969 Locker lock (ret->GetIsolate ());
7070 ret->SetEmptyString ();
7171 return Qnil;
7272 }
7373
7474 static VALUE GetIsolate (VALUE self) {
75- Base<V8Type, RRType> ret (self);
75+ Base ret (self);
7676 return Isolate (ret->GetIsolate ());
7777 }
78-
7978 };
8079
8180 class Value : public Base <v8::Value, rr::Value> {
@@ -96,7 +95,6 @@ namespace rr {
9695 defineMethod (" GetIsolate" , &GetIsolate).
9796 store (&Class);
9897 }
99-
10098 };
10199
102100 class Void : public Base <void , rr::Value> {
@@ -110,7 +108,6 @@ namespace rr {
110108 defineMethod (" GetIsolate" , &GetIsolate).
111109 store (&Class);
112110 }
113-
114111 };
115112
116113 static VALUE Class;
@@ -122,7 +119,6 @@ namespace rr {
122119 Value::Init ();
123120 Void::Init ();
124121 }
125-
126122 };
127123}
128124#endif /* RR_RETURN_VALUE_H */
0 commit comments