Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17596

mongo::OID::asTimeT() and mongo::OID::asDateT() should be const

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 3.1.1
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Platform 1 04/03/15

    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.

      Attachments

        Activity

          People

            adam.midvidy Adam Midvidy
            mapx Peng Xie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: