diff options
author | Brad King <brad.king@kitware.com> | 2021-06-23 12:56:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-06-23 12:56:28 (GMT) |
commit | 6c5f21d10e51ce7ee6ba3f1579c68c558877fa63 (patch) | |
tree | 0f4546bbe6b8a47c96307921ea8d7f2e89007abf /Source | |
parent | 694dfcae1310c78abfaed38442f8309c2319f931 (diff) | |
parent | 88e56c2e5aa5a89c646250c42412a96d181f7aa7 (diff) | |
download | CMake-6c5f21d10e51ce7ee6ba3f1579c68c558877fa63.zip CMake-6c5f21d10e51ce7ee6ba3f1579c68c558877fa63.tar.gz CMake-6c5f21d10e51ce7ee6ba3f1579c68c558877fa63.tar.bz2 |
Merge topic 'clang-compiler-warnings'
88e56c2e5a Enable compiler warnings when compiling CMake with Clang
cadf2b632e Fix -Wpessimizing-move warnings in QCMake::loadPresets()
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6252
Diffstat (limited to 'Source')
-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 && |