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

qgraphicsitem.h (warning: zero as null pointer constant [-Wzero-as-null-pointer-constant])

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.2.4
    • Active Qt
    • None
    • All

    Description

      qgraphicsitem.h

      Please replace '0' with nullptr.

      template <class T> inline T qgraphicsitem_cast(QGraphicsItem *item)

      { typedef typename std::remove_cv<typename std::remove_pointer<T>::type>::type Item; return int(Item::Type) == int(QGraphicsItem::Type) || (item && int(Item::Type) == item->type()) ? static_cast<T>(item) : *nullptr*; }

      template <class T> inline T qgraphicsitem_cast(const QGraphicsItem *item)

      { typedef typename std::remove_cv<typename std::remove_pointer<T>::type>::type Item; return int(Item::Type) == int(QGraphicsItem::Type) || (item && int(Item::Type) == item->type()) ? static_cast<T>(item) : *nullptr*; }

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            textbrowser Alexis Megas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes