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

QDateTime::nullJd usage of numeric_limits

XMLWordPrintable

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

      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)(); }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes