Skip to content

Commit

Permalink
use const reference instead of by value in Database constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed May 12, 2015
1 parent fcdc461 commit 139db7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/database.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace leveldown {

static v8::Persistent<v8::FunctionTemplate> database_constructor;

Database::Database (v8::Handle<v8::Value> from)
Database::Database (const v8::Handle<v8::Value>& from)
: location(new NanUtf8String(from))
, db(NULL)
, currentIteratorId(0)
Expand Down
2 changes: 1 addition & 1 deletion src/database.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Database : public node::ObjectWrap {
void CloseDatabase ();
void ReleaseIterator (uint32_t id);

Database (v8::Handle<v8::Value> from);
Database (const v8::Handle<v8::Value>& from);
~Database ();

private:
Expand Down

0 comments on commit 139db7b

Please sign in to comment.