From d7f6bc336982b7175c1651ccc8dfd04dd79ea367 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 2 May 2012 11:24:34 +0200 Subject: [PATCH] Fix warning about truncation from size_t to quint. qstrncmp() takes a quint. Change-Id: I6e11155a793e3a4d9d29861ebb7c7a9c5c2f31c8 Reviewed-by: hjk --- src/libs/cplusplus/PPToken.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/cplusplus/PPToken.h b/src/libs/cplusplus/PPToken.h index eb59fc847be..adcdda96377 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); }