diff options
Diffstat (limited to 'db/jsobjmanipulator.h')
-rw-r--r-- | db/jsobjmanipulator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/jsobjmanipulator.h b/db/jsobjmanipulator.h index fed96762f28..bd4089b1410 100644 --- a/db/jsobjmanipulator.h +++ b/db/jsobjmanipulator.h @@ -103,6 +103,10 @@ namespace mongo { } } } + + void rewriteFieldName( const char *name ) { + strcpy( data() + 1, name ); + } private: char *data() { return nonConst( _element.rawdata() ); } char *value() { return nonConst( _element.value() ); } |