0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

trying to make windows compile

This commit is contained in:
Eliot Horowitz 2009-12-06 00:47:58 -05:00
parent 856ebf9127
commit 7d160ea242
2 changed files with 6 additions and 8 deletions

View File

@ -36,13 +36,6 @@ namespace mongo {
_advance();
}
CursorIterator::~CursorIterator(){
if ( _matcher ){
delete _matcher;
_matcher = 0;
}
}
BSONObj CursorIterator::next(){
BSONObj o = _o;
_advance();

View File

@ -35,7 +35,12 @@ namespace mongo {
class CursorIterator {
public:
CursorIterator( auto_ptr<Cursor> c , BSONObj filter = BSONObj() );
~CursorIterator();
~CursorIterator(){
if ( _matcher ){
delete _matcher;
_matcher = 0;
}
}
BSONObj next();
bool hasNext();