diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2016-04-05 16:51:08 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2016-04-05 19:59:59 +0200 |
commit | 0d41463d1f9498ee89b3cc706752a689b787db70 (patch) | |
tree | 6d0af6e1e4bcd6741ecff302754839e80f334f77 | |
parent | 0a62f929da0cff816d79d2ed2b9b3b4ecdd50586 (diff) | |
download | node-new-0d41463d1f9498ee89b3cc706752a689b787db70.tar.gz |
src: add missing 'inline' keywords
The BaseObject constructor and destructor should not have external
linkage because BaseObject is a header-only construct. Add the
necessary 'inline' keywords.
PR-URL: https://github.com/nodejs/node/pull/6056
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
-rw-r--r-- | src/base-object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base-object.h b/src/base-object.h index 8574a904e7..8cc5101782 100644 --- a/src/base-object.h +++ b/src/base-object.h @@ -9,8 +9,8 @@ class Environment; class BaseObject { public: - BaseObject(Environment* env, v8::Local<v8::Object> handle); - virtual ~BaseObject(); + inline BaseObject(Environment* env, v8::Local<v8::Object> handle); + inline virtual ~BaseObject(); // Returns the wrapped object. Returns an empty handle when // persistent.IsEmpty() is true. |