summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebenginescript.cpp
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2025-02-06 15:22:21 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2025-02-21 01:46:55 +0100
commit2ccca2f0663e866b94fd1d7f0195ebff280583fb (patch)
tree7586bb10eda4328c94f8e7fe254cbde56d12f2cc /src/core/api/qwebenginescript.cpp
parentfdc54fc7d9097de5e2bfa5f3b9ca8ec52312be3d (diff)
Make QString and QByteArray strings constants if not modified
Pick-to: 6.8 6.9 Change-Id: If6c704cf5dada72d2c5c069fcbbcfea16af845ac Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/core/api/qwebenginescript.cpp')
-rw-r--r--src/core/api/qwebenginescript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/api/qwebenginescript.cpp b/src/core/api/qwebenginescript.cpp
index ee9d59a6b..48bd014aa 100644
--- a/src/core/api/qwebenginescript.cpp
+++ b/src/core/api/qwebenginescript.cpp
@@ -172,7 +172,7 @@ void QWebEngineScript::setSourceUrl(const QUrl &url)
return;
}
- QString source = QString::fromUtf8(file.readAll());
+ const QString source = QString::fromUtf8(file.readAll());
setSourceCode(source);
}