diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-08-23 20:11:44 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-08-23 20:13:49 (GMT) |
commit | 17ddc4ac762007a1472c71a41a8ffb282d65579d (patch) | |
tree | 99797eecbdd78d89c9c61ccf5d96afad100cc4c5 /Source | |
parent | 6f1dae2b01b674907c078f9c3aa22999bdfe9f61 (diff) | |
download | CMake-17ddc4ac762007a1472c71a41a8ffb282d65579d.zip CMake-17ddc4ac762007a1472c71a41a8ffb282d65579d.tar.gz CMake-17ddc4ac762007a1472c71a41a8ffb282d65579d.tar.bz2 |
cmStandardLevelResolver: compare with static string literals
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmStandardLevelResolver.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmStandardLevelResolver.cxx b/Source/cmStandardLevelResolver.cxx index 7d83f7f..7204f72 100644 --- a/Source/cmStandardLevelResolver.cxx +++ b/Source/cmStandardLevelResolver.cxx @@ -13,7 +13,9 @@ #include <vector> #include <cm/iterator> +#include <cm/string_view> #include <cmext/algorithm> +#include <cmext/string_view> #include "cmGeneratorExpression.h" #include "cmGeneratorTarget.h" @@ -185,7 +187,7 @@ struct StandardLevelComputer } std::string standardStr(*standardProp); - if (this->Language == "CUDA" && standardStr == "98") { + if (this->Language == "CUDA"_s && standardStr == "98"_s) { standardStr = "03"; } |