Browse Source

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>
v4.x
Ben Noordhuis 9 years ago
committed by Myles Borins
parent
commit
2942cff069
  1. 4
      src/base-object.h

4
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.

Loading…
Cancel
Save