tools: StringBuilder - silence clang warning
warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] a.resize(it - a.constData()); ~ ~~~^~~~~~~~~~~~~~~ Change-Id: I8c199d69f2e0d41d1c288d452b9d621b201fa98e Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
58d9b42c03
commit
f7338d86af
@ -421,7 +421,7 @@ QString &operator+=(QString &a, const QStringBuilder<A, B> &b)
|
||||
a.reserve(len);
|
||||
QChar *it = a.data() + a.size();
|
||||
QConcatenable< QStringBuilder<A, B> >::appendTo(b, it);
|
||||
a.resize(it - a.constData()); //may be smaller than len if there was conversion from utf8
|
||||
a.resize(int(it - a.constData())); //may be smaller than len if there was conversion from utf8
|
||||
return a;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user