diff options
| author | Peter Varga <pvarga@inf.u-szeged.hu> | 2025-02-06 15:22:21 +0100 |
|---|---|---|
| committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2025-02-21 01:46:55 +0100 |
| commit | 2ccca2f0663e866b94fd1d7f0195ebff280583fb (patch) | |
| tree | 7586bb10eda4328c94f8e7fe254cbde56d12f2cc /src/core/api/qwebenginescript.cpp | |
| parent | fdc54fc7d9097de5e2bfa5f3b9ca8ec52312be3d (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.cpp | 2 |
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); } |
