summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-04-05 16:51:08 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-04-05 19:59:59 +0200
commit0d41463d1f9498ee89b3cc706752a689b787db70 (patch)
tree6d0af6e1e4bcd6741ecff302754839e80f334f77 /src
parent0a62f929da0cff816d79d2ed2b9b3b4ecdd50586 (diff)
downloadandroid-node-v8-0d41463d1f9498ee89b3cc706752a689b787db70.tar.gz
android-node-v8-0d41463d1f9498ee89b3cc706752a689b787db70.tar.bz2
android-node-v8-0d41463d1f9498ee89b3cc706752a689b787db70.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/base-object.h4
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.