diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-06-21 16:35:03 (GMT) |
---|---|---|
committer | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-06-22 15:13:21 (GMT) |
commit | cadf2b632e6a09945ef4907e96e66fb3aa922e0c (patch) | |
tree | c7bb1d1cb2011b35034a9fb3740c0bd9e0ab422c /Source/QtDialog | |
parent | 66488d4eb31d372d8e06ce78e5f49a7cc43974ee (diff) | |
download | CMake-cadf2b632e6a09945ef4907e96e66fb3aa922e0c.zip CMake-cadf2b632e6a09945ef4907e96e66fb3aa922e0c.tar.gz CMake-cadf2b632e6a09945ef4907e96e66fb3aa922e0c.tar.bz2 |
Fix -Wpessimizing-move warnings in QCMake::loadPresets()
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/QCMake.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx index e6faef4..859c18d 100644 --- a/Source/QtDialog/QCMake.cxx +++ b/Source/QtDialog/QCMake.cxx @@ -550,17 +550,14 @@ void QCMake::loadPresets() } QCMakePreset preset; - preset.name = std::move(QString::fromLocal8Bit(p.Name.data())); - preset.displayName = - std::move(QString::fromLocal8Bit(p.DisplayName.data())); - preset.description = - std::move(QString::fromLocal8Bit(p.Description.data())); - preset.generator = std::move(QString::fromLocal8Bit(p.Generator.data())); - preset.architecture = - std::move(QString::fromLocal8Bit(p.Architecture.data())); + preset.name = QString::fromLocal8Bit(p.Name.data()); + preset.displayName = QString::fromLocal8Bit(p.DisplayName.data()); + preset.description = QString::fromLocal8Bit(p.Description.data()); + preset.generator = QString::fromLocal8Bit(p.Generator.data()); + preset.architecture = QString::fromLocal8Bit(p.Architecture.data()); preset.setArchitecture = !p.ArchitectureStrategy || p.ArchitectureStrategy == cmCMakePresetsFile::ArchToolsetStrategy::Set; - preset.toolset = std::move(QString::fromLocal8Bit(p.Toolset.data())); + preset.toolset = QString::fromLocal8Bit(p.Toolset.data()); preset.setToolset = !p.ToolsetStrategy || p.ToolsetStrategy == cmCMakePresetsFile::ArchToolsetStrategy::Set; preset.enabled = it.Expanded && it.Expanded->ConditionResult && |