summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp
index 14cce79eed..b07e0f57fe 100644
--- a/src/corelib/text/qstring.cpp
+++ b/src/corelib/text/qstring.cpp
@@ -2943,7 +2943,7 @@ QString &QString::operator=(QChar ch)
T is a view or a container on/of QChar, char16_t, or char
*/
template <typename T>
-static void insert_helper(QString &str, qsizetype i, T toInsert)
+static void insert_helper(QString &str, qsizetype i, const T &toInsert)
{
auto &str_d = str.data_ptr();
qsizetype difference = 0;