Replace Q_NULLPTR with nullptr in corelib
Change-Id: I9cdb5b7015c62c50b35f8a6519ea4e777db97683 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
53abc0f664
commit
6c761a0db1
@ -118,7 +118,7 @@ public:
|
|||||||
Q_DECL_CONSTEXPR inline QFlags &operator=(const QFlags &other);
|
Q_DECL_CONSTEXPR inline QFlags &operator=(const QFlags &other);
|
||||||
#endif
|
#endif
|
||||||
Q_DECL_CONSTEXPR inline QFlags(Enum flags) Q_DECL_NOTHROW : i(Int(flags)) {}
|
Q_DECL_CONSTEXPR inline QFlags(Enum flags) Q_DECL_NOTHROW : i(Int(flags)) {}
|
||||||
Q_DECL_CONSTEXPR inline QFlags(Zero = Q_NULLPTR) Q_DECL_NOTHROW : i(0) {}
|
Q_DECL_CONSTEXPR inline QFlags(Zero = nullptr) Q_DECL_NOTHROW : i(0) {}
|
||||||
Q_DECL_CONSTEXPR inline QFlags(QFlag flag) Q_DECL_NOTHROW : i(flag) {}
|
Q_DECL_CONSTEXPR inline QFlags(QFlag flag) Q_DECL_NOTHROW : i(flag) {}
|
||||||
|
|
||||||
#ifdef Q_COMPILER_INITIALIZER_LISTS
|
#ifdef Q_COMPILER_INITIALIZER_LISTS
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
|
|
||||||
struct SourceModelForRowResult
|
struct SourceModelForRowResult
|
||||||
{
|
{
|
||||||
SourceModelForRowResult() : sourceModel(Q_NULLPTR), sourceRow(-1) {}
|
SourceModelForRowResult() : sourceModel(nullptr), sourceRow(-1) {}
|
||||||
QAbstractItemModel *sourceModel;
|
QAbstractItemModel *sourceModel;
|
||||||
int sourceRow;
|
int sourceRow;
|
||||||
};
|
};
|
||||||
|
@ -102,7 +102,7 @@ Q_CORE_EXPORT void QTest::qWait(int ms)
|
|||||||
int remaining = ms;
|
int remaining = ms;
|
||||||
do {
|
do {
|
||||||
QCoreApplication::processEvents(QEventLoop::AllEvents, remaining);
|
QCoreApplication::processEvents(QEventLoop::AllEvents, remaining);
|
||||||
QCoreApplication::sendPostedEvents(Q_NULLPTR, QEvent::DeferredDelete);
|
QCoreApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete);
|
||||||
remaining = timer.remainingTime();
|
remaining = timer.remainingTime();
|
||||||
if (remaining <= 0)
|
if (remaining <= 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user