summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/PPToken.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-05-02 11:24:34 +0200
committerhjk <qthjk@ovi.com>2012-05-07 13:20:51 +0200
commitd7f6bc336982b7175c1651ccc8dfd04dd79ea367 (patch)
treec9342a90621e33e6f4d859616c7c34f589bfa2d8 /src/libs/cplusplus/PPToken.h
parent09e1e87050c0fe4ba1fe91936bbc0ebd0850f8ca (diff)
downloadqt-creator-d7f6bc336982b7175c1651ccc8dfd04dd79ea367.tar.gz
Fix warning about truncation from size_t to quint.
qstrncmp() takes a quint. Change-Id: I6e11155a793e3a4d9d29861ebb7c7a9c5c2f31c8 Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/cplusplus/PPToken.h')
-rw-r--r--src/libs/cplusplus/PPToken.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/PPToken.h b/src/libs/cplusplus/PPToken.h
index eb59fc847b..adcdda9637 100644
--- a/src/libs/cplusplus/PPToken.h
+++ b/src/libs/cplusplus/PPToken.h
@@ -60,7 +60,7 @@ public:
{ return !this->operator==(other); }
bool operator==(const char *other) const
- { return qstrncmp(m_start, other, strlen(other)) == 0; }
+ { return qstrncmp(m_start, other, qstrlen(other)) == 0; }
bool operator!=(const char *other) const
{ return !this->operator==(other); }