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:
parent
856ebf9127
commit
7d160ea242
@ -36,13 +36,6 @@ namespace mongo {
|
||||
_advance();
|
||||
}
|
||||
|
||||
CursorIterator::~CursorIterator(){
|
||||
if ( _matcher ){
|
||||
delete _matcher;
|
||||
_matcher = 0;
|
||||
}
|
||||
}
|
||||
|
||||
BSONObj CursorIterator::next(){
|
||||
BSONObj o = _o;
|
||||
_advance();
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user