Fix a "warning: 'operator+=' is deprecated" when building with clang
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>
Thu, 4 Oct 2012 12:31:29 +0000 (14:31 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 11 Oct 2012 00:47:36 +0000 (02:47 +0200)
commit191c0e300b8d625fa93939ecbff777469b816a44
treeb4d84b017bc8dcaf39c8f8323d29e9cc85389458
parente3b7c23ec70f1471212b9eed8fea5f6fc3e24d98
Fix a "warning: 'operator+=' is deprecated" when building with clang

Any file including qstringbuilder.h would trigger a warning when
compiled with QT_ASCII_CAST_WARNINGS defined since it implicitely
converts a QString to QByteArray.

Explicitely call toUtf8() to fix the issue.

Change-Id: If20f9d4571c5d1ed789564196c9f1331e1efd1d9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qstringbuilder.h