diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-03-06 12:20:49 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-03-06 12:22:33 +0000 |
commit | 0a29d74a5e875ad2e0229ed2c8e48344f87a45e0 (patch) | |
tree | cef7d55c367ee643f881d4f98051e3945f94b60d /src/script/api/qscriptstring.h | |
parent | 751c105984532f41de4c5f712f36f4c2579a60b7 (diff) | |
download | qtscript-0a29d74a5e875ad2e0229ed2c8e48344f87a45e0.tar.gz |
Make public headers compile with -Wzero-as-null-pointer-constant
... or equivalent.
QtBase 5.6 headers already compile that way, so let the other
modules follow suit.
Change-Id: I7e007ee907c479320a885af329745563c080467d
Task-number: QTBUG-45291
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/script/api/qscriptstring.h')
-rw-r--r-- | src/script/api/qscriptstring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/qscriptstring.h b/src/script/api/qscriptstring.h index c4047f2..eed4a1e 100644 --- a/src/script/api/qscriptstring.h +++ b/src/script/api/qscriptstring.h @@ -47,7 +47,7 @@ public: bool operator==(const QScriptString &other) const; bool operator!=(const QScriptString &other) const; - quint32 toArrayIndex(bool *ok = 0) const; + quint32 toArrayIndex(bool *ok = Q_NULLPTR) const; QString toString() const; operator QString() const; |