From 188ecef155d1378f3d7d0cddd8cc6d84f87781c8 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 5 Apr 2016 16:51:08 +0200 Subject: [PATCH] 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 --- src/base-object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base-object.h b/src/base-object.h index 5a7b95827e8f11..4142b7e9b33080 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 handle); - virtual ~BaseObject(); + inline BaseObject(Environment* env, v8::Local handle); + inline virtual ~BaseObject(); // Returns the wrapped object. Returns an empty handle when // persistent.IsEmpty() is true.