summaryrefslogtreecommitdiff
path: root/db/cursor.cpp
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-10-06 16:17:11 -0400
committerDwight <dmerriman@gmail.com>2009-10-06 16:17:11 -0400
commit0c9212038d87cdbac7cfd39ee93a099b6a291e61 (patch)
treea73eaf4b64b07c6995a5d450570e8b04e7ad00fe /db/cursor.cpp
parent32d147df9c9c3ca2e8d4cb1e7ed6af89017ccce3 (diff)
downloadmongo-0c9212038d87cdbac7cfd39ee93a099b6a291e61.tar.gz
small cleanups
Diffstat (limited to 'db/cursor.cpp')
-rw-r--r--db/cursor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/cursor.cpp b/db/cursor.cpp
index fe8673ce70c..773cc1f4bb5 100644
--- a/db/cursor.cpp
+++ b/db/cursor.cpp
@@ -19,6 +19,7 @@
namespace mongo {
+ /* these will be used outside of mutexes - really functors - thus the const */
class Forward : public AdvanceStrategy {
virtual DiskLoc next( const DiskLoc &prev ) const {
return prev.rec()->getNext( prev );
@@ -31,10 +32,10 @@ namespace mongo {
}
} _reverse;
- AdvanceStrategy *forward() {
+ const AdvanceStrategy *forward() {
return &_forward;
}
- AdvanceStrategy *reverse() {
+ const AdvanceStrategy *reverse() {
return &_reverse;
}