diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-12-15 09:50:35 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-12-15 09:50:35 -0500 |
commit | c022b54c08674e575c05589c525dea65dbbbb696 (patch) | |
tree | ef3484abec2a0e1eb40f2aa104c4ac188f5b52d5 /scripting | |
parent | 845360735a617684a4b3cafe8d8632cc64695493 (diff) | |
download | mongo-c022b54c08674e575c05589c525dea65dbbbb696.tar.gz |
init( BSONObj* ) can be const *
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/engine.cpp | 2 | ||||
-rw-r--r-- | scripting/engine.h | 2 | ||||
-rw-r--r-- | scripting/engine_spidermonkey.cpp | 2 | ||||
-rw-r--r-- | scripting/engine_v8.cpp | 2 | ||||
-rw-r--r-- | scripting/engine_v8.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/scripting/engine.cpp b/scripting/engine.cpp index a28cff2983b..27a23f6f3c0 100644 --- a/scripting/engine.cpp +++ b/scripting/engine.cpp @@ -330,7 +330,7 @@ namespace mongo { void reset(){ _real->reset(); } - void init( BSONObj * data ){ + void init( const BSONObj * data ){ _real->init( data ); } diff --git a/scripting/engine.h b/scripting/engine.h index 5b5c480ce77..6a6780e09fa 100644 --- a/scripting/engine.h +++ b/scripting/engine.h @@ -46,7 +46,7 @@ namespace mongo { virtual ~Scope(); virtual void reset() = 0; - virtual void init( BSONObj * data ) = 0; + virtual void init( const BSONObj * data ) = 0; void init( const char * data ){ BSONObj o( data , 0 ); init( &o ); diff --git a/scripting/engine_spidermonkey.cpp b/scripting/engine_spidermonkey.cpp index 552271b8edc..5bc2a5c120b 100644 --- a/scripting/engine_spidermonkey.cpp +++ b/scripting/engine_spidermonkey.cpp @@ -1194,7 +1194,7 @@ namespace mongo { _roots.push_back( root ); } - void init( BSONObj * data ){ + void init( const BSONObj * data ){ smlock; if ( ! data ) return; diff --git a/scripting/engine_v8.cpp b/scripting/engine_v8.cpp index cb32f7c24cf..df9dcc9ffe3 100644 --- a/scripting/engine_v8.cpp +++ b/scripting/engine_v8.cpp @@ -140,7 +140,7 @@ namespace mongo { // ---- global stuff ---- - void V8Scope::init( BSONObj * data ){ + void V8Scope::init( const BSONObj * data ){ V8Lock l; if ( ! data ) return; diff --git a/scripting/engine_v8.h b/scripting/engine_v8.h index 82814a2f3a9..1034e7f3da1 100644 --- a/scripting/engine_v8.h +++ b/scripting/engine_v8.h @@ -35,7 +35,7 @@ namespace mongo { ~V8Scope(); virtual void reset(); - virtual void init( BSONObj * data ); + virtual void init( const BSONObj * data ); virtual void localConnect( const char * dbName ); virtual void externalSetup(); |