diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2022-12-11 15:35:34 +0200 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-02-09 16:50:02 +0200 |
| commit | 3a3b76e040ec800e1f3214803c051afacfdb0f7b (patch) | |
| tree | 874ed7dd87a00feab96c301228a2ade0ef3284c2 /src/plugins/sqldrivers/mysql/qsql_mysql.cpp | |
| parent | 5f73f485563719e133c849c8dbd93877095d5ff5 (diff) | |
QString: don't detach in insert(qsizetype, QUtf8StringView)
If the string is shared, instead of detaching (which would copy the
whole string data before doing the insertion), create a new string and
copy characters to it as needed then swap it with "this".
[ChangeLog][QtCore][QString] Inserting Utf8 data (e.g. a
QUtf8StringView) into a currently shared QString is now done more
efficiently.
Task-number: QTBUG-106186
Change-Id: I832bde1494108685cc2f630750dfe9b38cd96931
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/sqldrivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
