From 740cc1308e2e672d346e44d4b989c57c12a5bcd5 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Fri, 7 May 2010 17:25:57 -0400 Subject: auto_ptr -> shared_ptr for Cursor objects --- db/dbhelpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db/dbhelpers.h') 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 c , BSONObj filter = BSONObj() ); + CursorIterator( shared_ptr c , BSONObj filter = BSONObj() ); BSONObj next(); bool hasNext(); private: void _advance(); - auto_ptr _cursor; + shared_ptr _cursor; auto_ptr _matcher; BSONObj _o; }; -- cgit v1.2.1