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:
parent
77804fce1c
commit
ba16babe48
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ public:
|
||||||
Ref(v8::Handle<T> handle, const char* label = "v8::Handle<void>") {
|
Ref(v8::Handle<T> handle, const char* label = "v8::Handle<void>") {
|
||||||
this->handle = handle;
|
this->handle = handle;
|
||||||
}
|
}
|
||||||
|
virtual ~Ref() {}
|
||||||
virtual operator VALUE() const {
|
virtual operator VALUE() const {
|
||||||
return handle.IsEmpty() ? Qnil : (new Holder(handle, Class))->value;
|
return handle.IsEmpty() ? Qnil : (new Holder(handle, Class))->value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue