Fixed developer build for MinGW
0 must not be used as a null pointer constant Change-Id: I082d0e99c105fb02980b9cf390e7f6e4c9ad0869 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
3e2bde3578
commit
e85e7f4b81
@ -105,7 +105,8 @@ public:
|
||||
void removeNativeEventFilter(QAbstractNativeEventFilter *filterObj);
|
||||
bool filterNativeEvent(const QByteArray &eventType, void *message, long *result);
|
||||
#if QT_DEPRECATED_SINCE(5, 0)
|
||||
QT_DEPRECATED bool filterEvent(void *message) { return filterNativeEvent("", message, 0); }
|
||||
QT_DEPRECATED bool filterEvent(void *message)
|
||||
{ return filterNativeEvent("", message, Q_NULLPTR); }
|
||||
#endif
|
||||
|
||||
Q_SIGNALS:
|
||||
|
@ -181,7 +181,7 @@ private:
|
||||
// signature() has been renamed to methodSignature() in Qt 5.
|
||||
// Warning, that function returns a QByteArray; check the life time if
|
||||
// you convert to char*.
|
||||
char *signature(struct renamedInQt5_warning_checkTheLifeTime * = 0) Q_DECL_EQ_DELETE;
|
||||
char *signature(struct renamedInQt5_warning_checkTheLifeTime * = Q_NULLPTR) Q_DECL_EQ_DELETE;
|
||||
#endif
|
||||
static QMetaMethod fromSignalImpl(const QMetaObject *, void **);
|
||||
|
||||
|
@ -315,7 +315,7 @@ public:
|
||||
static QImage::Format toImageFormat(QPixelFormat format) Q_DECL_NOTHROW;
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 0)
|
||||
QT_DEPRECATED inline QString text(const char* key, const char* lang=0) const;
|
||||
QT_DEPRECATED inline QString text(const char *key, const char *lang = Q_NULLPTR) const;
|
||||
QT_DEPRECATED inline QList<QImageTextKeyLang> textList() const;
|
||||
QT_DEPRECATED inline QStringList textLanguages() const;
|
||||
QT_DEPRECATED inline QString text(const QImageTextKeyLang&) const;
|
||||
|
@ -153,7 +153,7 @@ public:
|
||||
#if QT_DEPRECATED_SINCE(5, 0)
|
||||
QT_DEPRECATED inline QGraphicsItem *itemAt(const QPointF &position) const {
|
||||
QList<QGraphicsItem *> itemsAtPoint = items(position);
|
||||
return itemsAtPoint.isEmpty() ? 0 : itemsAtPoint.first();
|
||||
return itemsAtPoint.isEmpty() ? Q_NULLPTR : itemsAtPoint.first();
|
||||
}
|
||||
#endif
|
||||
QGraphicsItem *itemAt(const QPointF &pos, const QTransform &deviceTransform) const;
|
||||
@ -167,7 +167,7 @@ public:
|
||||
#if QT_DEPRECATED_SINCE(5, 0)
|
||||
QT_DEPRECATED inline QGraphicsItem *itemAt(qreal x, qreal y) const {
|
||||
QList<QGraphicsItem *> itemsAtPoint = items(QPointF(x, y));
|
||||
return itemsAtPoint.isEmpty() ? 0 : itemsAtPoint.first();
|
||||
return itemsAtPoint.isEmpty() ? Q_NULLPTR : itemsAtPoint.first();
|
||||
}
|
||||
#endif
|
||||
inline QGraphicsItem *itemAt(qreal x, qreal y, const QTransform &deviceTransform) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user