summaryrefslogtreecommitdiff
path: root/db/dbhelpers.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-07 17:25:57 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-07 17:25:57 -0400
commit740cc1308e2e672d346e44d4b989c57c12a5bcd5 (patch)
tree2f66f4bba01c1bee63d5aa80739dd1afa9bce078 /db/dbhelpers.h
parent8717179475a98d264770a70c5582bd9023271cbd (diff)
downloadmongo-740cc1308e2e672d346e44d4b989c57c12a5bcd5.tar.gz
auto_ptr -> shared_ptr for Cursor objects
Diffstat (limited to 'db/dbhelpers.h')
-rw-r--r--db/dbhelpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/dbhelpers.h b/db/dbhelpers.h
index 57a5a6e1659..08b88dc4e50 100644
--- a/db/dbhelpers.h
+++ b/db/dbhelpers.h
@@ -33,14 +33,14 @@ namespace mongo {
class CursorIterator {
public:
- CursorIterator( auto_ptr<Cursor> c , BSONObj filter = BSONObj() );
+ CursorIterator( shared_ptr<Cursor> c , BSONObj filter = BSONObj() );
BSONObj next();
bool hasNext();
private:
void _advance();
- auto_ptr<Cursor> _cursor;
+ shared_ptr<Cursor> _cursor;
auto_ptr<CoveredIndexMatcher> _matcher;
BSONObj _o;
};