Scripting: make args a paramter to invoke() rather than magic

This commit is contained in:
Eliot Horowitz
2009-04-23 16:39:41 -04:00
parent 310804303c
commit c434bed746
5 changed files with 20 additions and 16 deletions

View File

@@ -319,7 +319,7 @@ namespace mongo {
return res;
}
int JavaJSImpl::scopeSetObject( jlong id , const char * field , BSONObj * obj ) {
int JavaJSImpl::scopeSetObject( jlong id , const char * field , const BSONObj * obj ) {
jobject bb = 0;
if ( obj ) {
bb = _getEnv()->NewDirectByteBuffer( (void*)(obj->objdata()) , (jlong)(obj->objsize()) );