Skip to content

Commit fbc99ba

Browse files
bnoordhuisMyles Borins
authored and
Myles Borins
committed
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: #6056 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 8da4bad commit fbc99ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base-object.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class Environment;
99

1010
class BaseObject {
1111
public:
12-
BaseObject(Environment* env, v8::Local<v8::Object> handle);
13-
virtual ~BaseObject();
12+
inline BaseObject(Environment* env, v8::Local<v8::Object> handle);
13+
inline virtual ~BaseObject();
1414

1515
// Returns the wrapped object. Returns an empty handle when
1616
// persistent.IsEmpty() is true.

0 commit comments

Comments
 (0)