summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstringbuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qstringbuilder.h')
-rw-r--r--src/corelib/text/qstringbuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qstringbuilder.h b/src/corelib/text/qstringbuilder.h
index 853033b2d91..0b296d5142a 100644
--- a/src/corelib/text/qstringbuilder.h
+++ b/src/corelib/text/qstringbuilder.h
@@ -253,7 +253,7 @@ template <> struct QConcatenable<QString> : private QAbstractConcatenable
{
const qsizetype n = a.size();
if (n)
- memcpy(out, reinterpret_cast<const char*>(a.constData()), sizeof(QChar) * n);
+ memcpy(out, a.data(), sizeof(QChar) * n);
out += n;
}
};