summaryrefslogtreecommitdiff
path: root/src/mongo/bson/oid.h
diff options
context:
space:
mode:
authorroot <root@Elena.(none)>2015-03-16 02:12:41 +0000
committerAdam Midvidy <amidvidy@gmail.com>2015-03-17 17:31:19 -0400
commit63cdeb9c56203b9c5e7171b1d7faf9794c838bfd (patch)
treec70663b645d2249c8e831377d804b51f7f471073 /src/mongo/bson/oid.h
parentbf52637fde15f15dac94b44b7adf3a03fa8b05fe (diff)
downloadmongo-63cdeb9c56203b9c5e7171b1d7faf9794c838bfd.tar.gz
SERVER-17596 mongo::OID::asTimeT() and mongo::OID::asDateT() should be const
Signed-off-by: Adam Midvidy <amidvidy@gmail.com> Closes #937
Diffstat (limited to 'src/mongo/bson/oid.h')
-rw-r--r--src/mongo/bson/oid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/oid.h b/src/mongo/bson/oid.h
index a8a3e494124..df29065bb5e 100644
--- a/src/mongo/bson/oid.h
+++ b/src/mongo/bson/oid.h
@@ -139,8 +139,8 @@ namespace mongo {
/** Set to the min/max OID that could be generated at given timestamp. */
void init( Date_t date, bool max=false );
- time_t asTimeT();
- Date_t asDateT() { return asTimeT() * 1000LL; }
+ time_t asTimeT() const;
+ Date_t asDateT() const { return asTimeT() * 1000LL; }
// True iff the OID is not empty
bool isSet() const {