diff options
author | Brad King <brad.king@kitware.com> | 2023-05-22 18:32:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-22 21:15:58 (GMT) |
commit | 9ea7b4ac66fee01a840dba9071a8bd0a4a576e8d (patch) | |
tree | 92259ff505d4a0bb3c289a620242e7ca5eca7dc3 /Source/cmGetTestPropertyCommand.cxx | |
parent | bd4ec7a71ea0033b6a4fd80956e6a84e40a5a5ef (diff) | |
download | CMake-9ea7b4ac66fee01a840dba9071a8bd0a4a576e8d.zip CMake-9ea7b4ac66fee01a840dba9071a8bd0a4a576e8d.tar.gz CMake-9ea7b4ac66fee01a840dba9071a8bd0a4a576e8d.tar.bz2 |
clang-tidy: Fix readability-redundant-string-cstr warnings
Diffstat (limited to 'Source/cmGetTestPropertyCommand.cxx')
-rw-r--r-- | Source/cmGetTestPropertyCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGetTestPropertyCommand.cxx b/Source/cmGetTestPropertyCommand.cxx index a4ac9f6..36446c9 100644 --- a/Source/cmGetTestPropertyCommand.cxx +++ b/Source/cmGetTestPropertyCommand.cxx @@ -25,7 +25,7 @@ bool cmGetTestPropertyCommand(std::vector<std::string> const& args, prop = test->GetProperty(args[1]); } if (prop) { - mf.AddDefinition(var, prop->c_str()); + mf.AddDefinition(var, prop); return true; } } |