1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

add virtual destructor per eclipse recommendations

This commit is contained in:
Charles Lowell 2012-06-21 05:01:02 -05:00
parent 77804fce1c
commit ba16babe48

View file

@ -134,6 +134,7 @@ public:
Ref(v8::Handle<T> handle, const char* label = "v8::Handle<void>") {
this->handle = handle;
}
virtual ~Ref() {}
virtual operator VALUE() const {
return handle.IsEmpty() ? Qnil : (new Holder(handle, Class))->value;
}