[SERVER-17596] mongo::OID::asTimeT() and mongo::OID::asDateT() should be const Created: 16/Mar/15  Updated: 19/Sep/15  Resolved: 17/Mar/15

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.1.1

Type: Improvement Priority: Trivial - P5
Reporter: Peng Xie Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-560 mongo::OID::asTimeT() and mongo::OID:... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platform 1 04/03/15
Participants:

 Description   

As mongo::OID::asDateT() calls mongo::OID::asTimeT(), which calls OID::getTimestamp(), which is a const member function, mongo::OID::asDateT() and mongo::OID::asTimeT() should also be marked as const.



 Comments   
Comment by Githook User [ 17/Mar/15 ]

Author:

{u'name': u'root', u'email': u'root@Elena.(none)'}

Message: SERVER-17596 mongo::OID::asTimeT() and mongo::OID::asDateT() should be const

Signed-off-by: Adam Midvidy <amidvidy@gmail.com>

Closes #937
Branch: master
https://github.com/mongodb/mongo/commit/63cdeb9c56203b9c5e7171b1d7faf9794c838bfd

Generated at Thu Feb 08 03:45:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.