Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42767

QDateTime::nullJd usage of numeric_limits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.1
    • 5.3.1
    • Core: Date/Time
    • None
    • Microsoft Visual Studio 2013
    • def272750cdb7810bca4f4815ed1183ba2bd6df9

    Description

      QDateTime::nullJd is defined as follows

        static inline qint64 nullJd() { return std::numeric_limits<qint64>::min(); }
      

      With Microsoft VC++ this causes a compiler warning unless compiled with /DNOMINMAX, this isnt always an option when working with legacy code. Therefor I would suggest that QDateTime::nullJd is slightly rewritten:

        static inline qint64 nullJd() { return (std::numeric_limits<qint64>::min)(); }
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thiago Thiago Macieira
              zerhacken Rasmus Christian Pedersen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes