mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 07:11:52 +08:00
clang-tidy: fix performance-faster-string-find
lints
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user