diff --git a/src/corelib/io/qstorageinfo_linux.cpp b/src/corelib/io/qstorageinfo_linux.cpp index 502cb322fb..552567c63b 100644 --- a/src/corelib/io/qstorageinfo_linux.cpp +++ b/src/corelib/io/qstorageinfo_linux.cpp @@ -149,10 +149,10 @@ void QStorageInfoPrivate::initRootPath() } } if (bestInfo) { - rootPath = bestInfo->mountPoint; - device = bestInfo->device; - fileSystemType = bestInfo->fsType; - subvolume = bestInfo->fsRoot; + rootPath = std::move(bestInfo->mountPoint); + device = std::move(bestInfo->device); + fileSystemType = std::move(bestInfo->fsType); + subvolume = std::move(bestInfo->fsRoot); } }