summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-05-19 08:20:53 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-05-19 08:25:13 (GMT)
commitaef98360bfa5a5f3013c8fb29ed589545bb7a3cf (patch)
treefb89215277a75b31f63ab60a38b330a1d130e785 /src
parent56ffcd446d7b4a411fbada3a63d06c6a3e262a36 (diff)
downloadQt-aef98360bfa5a5f3013c8fb29ed589545bb7a3cf.zip
Qt-aef98360bfa5a5f3013c8fb29ed589545bb7a3cf.tar.gz
Qt-aef98360bfa5a5f3013c8fb29ed589545bb7a3cf.tar.bz2
Fix compiler warning: use C++ cast operator, not the old-style C cast.
Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qbytearraymatcher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qbytearraymatcher.h b/src/corelib/tools/qbytearraymatcher.h
index 633e92c..970cbcc 100644
--- a/src/corelib/tools/qbytearraymatcher.h
+++ b/src/corelib/tools/qbytearraymatcher.h
@@ -70,7 +70,7 @@ public:
inline QByteArray pattern() const
{
if (q_pattern.isNull())
- return QByteArray((const char*)p.p, p.l);
+ return QByteArray(reinterpret_cast<const char*>(p.p), p.l);
return q_pattern;
}