summaryrefslogtreecommitdiff
path: root/db/cursor.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-01-19 09:51:38 -0500
committerAaron <aaron@10gen.com>2009-01-19 09:51:38 -0500
commite0fa0d2947006935adbafc4280c83eb4de95cdd7 (patch)
tree31949f49f58ac5b561ea71ffc35964eb6c00fc9b /db/cursor.cpp
parent45b5c44f419fab1b94b1a632288ff4fc44501e6c (diff)
downloadmongo-e0fa0d2947006935adbafc4280c83eb4de95cdd7.tar.gz
Try to fix vc++ compiler warnings
Diffstat (limited to 'db/cursor.cpp')
-rw-r--r--db/cursor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/cursor.cpp b/db/cursor.cpp
index 0b40a01c7a6..a77ebec1b9b 100644
--- a/db/cursor.cpp
+++ b/db/cursor.cpp
@@ -55,7 +55,6 @@ namespace mongo {
}
ForwardCappedCursor::ForwardCappedCursor( NamespaceDetails *_nsd ) :
- BasicCursor( DiskLoc(), this ),
nsd( _nsd ) {
if ( !nsd )
return;
@@ -70,6 +69,7 @@ namespace mongo {
}
}
curr = start;
+ s = this;
}
DiskLoc ForwardCappedCursor::next( const DiskLoc &prev ) const {
@@ -94,7 +94,6 @@ namespace mongo {
}
ReverseCappedCursor::ReverseCappedCursor( NamespaceDetails *_nsd ) :
- BasicCursor( DiskLoc(), this ),
nsd( _nsd ) {
if ( !nsd )
return;
@@ -104,6 +103,7 @@ namespace mongo {
else
start = nsd->capExtent.ext()->lastRecord;
curr = start;
+ s = this;
}
DiskLoc ReverseCappedCursor::next( const DiskLoc &prev ) const {