summaryrefslogtreecommitdiff
path: root/s/cursors.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-07-01 15:33:03 -0400
committerEliot Horowitz <eliot@10gen.com>2009-07-01 15:33:03 -0400
commitf4f1291e08dc15f1dacecc87d3fd3a4c78906673 (patch)
tree2f727abcf3c900a853996a8d72335bdc2339f03d /s/cursors.cpp
parent6435f5f7e09edd60bc5d59328e8a5cbab88149ad (diff)
downloadmongo-f4f1291e08dc15f1dacecc87d3fd3a4c78906673.tar.gz
FieldMathcer::getSpec
Diffstat (limited to 's/cursors.cpp')
-rw-r--r--s/cursors.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/s/cursors.cpp b/s/cursors.cpp
index bf2fc97f496..32bc7290014 100644
--- a/s/cursors.cpp
+++ b/s/cursors.cpp
@@ -20,10 +20,7 @@ namespace mongo {
_done = false;
if ( q.fields.get() ){
- BSONObjBuilder b;
- for ( set<string>::iterator i=q.fields->begin(); i!=q.fields->end(); i++)
- b.append( i->c_str() , 1 );
- _fields = b.obj();
+ _fields = q.fields->getSpec();
}
else {
_fields = BSONObj();