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>
process-exit-stdio-flushing
Ben Noordhuis 9 years ago
parent
commit
0d41463d1f
  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