diff options
Diffstat (limited to 'src/req_wrap.h')
-rw-r--r-- | src/req_wrap.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/req_wrap.h b/src/req_wrap.h index 6dbf080a43..d4c1180ded 100644 --- a/src/req_wrap.h +++ b/src/req_wrap.h @@ -19,8 +19,8 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -#ifndef REQ_WRAP_H_ -#define REQ_WRAP_H_ +#ifndef SRC_REQ_WRAP_H_ +#define SRC_REQ_WRAP_H_ #include "queue.h" @@ -33,7 +33,7 @@ extern QUEUE req_wrap_queue; template <typename T> class ReqWrap { -public: + public: ReqWrap(v8::Handle<v8::Object> object = v8::Handle<v8::Object>()) { v8::HandleScope scope(node_isolate); if (object.IsEmpty()) object = v8::Object::New(); @@ -79,11 +79,11 @@ public: v8::Persistent<v8::Object> object_; QUEUE req_wrap_queue_; void* data_; - T req_; // *must* be last, GetActiveRequests() in node.cc depends on it + T req_; // *must* be last, GetActiveRequests() in node.cc depends on it }; } // namespace node -#endif // REQ_WRAP_H_ +#endif // SRC_REQ_WRAP_H_ |