diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-27 22:23:46 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-31 00:19:49 (GMT) |
commit | d58253d155b43b8af1d0b64412145625907e3d9e (patch) | |
tree | 63aa4b553a864e5e4307abade88e45bb64462839 | |
parent | a19ec77200ccd2157d936bec6472329464937b67 (diff) | |
download | CMake-d58253d155b43b8af1d0b64412145625907e3d9e.zip CMake-d58253d155b43b8af1d0b64412145625907e3d9e.tar.gz CMake-d58253d155b43b8af1d0b64412145625907e3d9e.tar.bz2 |
clang-tidy: fix `performance-faster-string-find` lints
-rw-r--r-- | Source/CPack/WiX/cmCPackWIXGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx index 2853ab9..5077596 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx +++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx @@ -1050,7 +1050,7 @@ std::string cmCPackWIXGenerator::GetRightmostExtension( { std::string extension; - std::string::size_type i = filename.rfind("."); + std::string::size_type i = filename.rfind('.'); if (i != std::string::npos) { extension = filename.substr(i); } |