Skip to content

Commit 692f1a3

Browse files
committed
QUrl: add a missing std::move()
The deslashified QString can be moved into place here. Found by Coverity. Amends 5e936b6. Pick-to: 6.9 6.8 Coverity-Id: 477475 Change-Id: Ibdaae0a9acae56960e16d5a6fd77fc1e08036af0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
1 parent e3a4cf0 commit 692f1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/corelib/io/qurl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3390,7 +3390,7 @@ QUrl QUrl::fromLocalFile(const QString &localFile)
33903390
// not directly using setPath here, as we do a few more transforms
33913391
parseDecodedComponent(deslashified);
33923392
if (!qt_urlRecode(url.d->path, deslashified, {}, localPathFromUser))
3393-
url.d->path = deslashified;
3393+
url.d->path = std::move(deslashified);
33943394

33953395
return url;
33963396
}

0 commit comments

Comments
 (0)