summaryrefslogtreecommitdiff
path: root/src/script/api/qscriptstring.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-06 12:20:49 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-06 12:22:33 +0000
commit0a29d74a5e875ad2e0229ed2c8e48344f87a45e0 (patch)
treecef7d55c367ee643f881d4f98051e3945f94b60d /src/script/api/qscriptstring.h
parent751c105984532f41de4c5f712f36f4c2579a60b7 (diff)
downloadqtscript-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.h2
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;