summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/mysql/qsql_mysql.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2022-12-06 13:35:26 +0200
committerAhmad Samir <a.samirh78@gmail.com>2023-02-09 16:49:05 +0200
commit4d7dfd29d16163eb0d8863e3fd947a1592e40e24 (patch)
tree95210a95f29d8ffd610ee04dd535d4c8428350ab /src/plugins/sqldrivers/mysql/qsql_mysql.cpp
parent26fec96a813b8d1c4955b394794c66e5e830e4c4 (diff)
QString: refactor two insert overloads
Namely insert(qsizetype i, QLatin1StringView) and insert(qsizetype, const QChar *, qsizetype). Instead of using d->insert(), tell d.detachAndGrow() to grow at the beginning if inserting at index 0. The next commit will split the common code between these two overloads to a static helper. (Done in multiple steps to make it easier for me to see what is being changed, and easier to git bisect if needed ...etc). Change-Id: Idf939df10cca49cb13b66a36b3cf155561630959 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