mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
Remove second arg: npos in substr usages
This commit is contained in:
committed by
Brad King
parent
8b6f439ef2
commit
db2d46e2dd
@@ -5149,7 +5149,7 @@ std::string cmGeneratorTarget::CheckCMP0004(std::string const& item) const
|
||||
std::string lib = item;
|
||||
std::string::size_type pos = lib.find_first_not_of(" \t\r\n");
|
||||
if (pos != std::string::npos) {
|
||||
lib = lib.substr(pos, std::string::npos);
|
||||
lib = lib.substr(pos);
|
||||
}
|
||||
pos = lib.find_last_not_of(" \t\r\n");
|
||||
if (pos != std::string::npos) {
|
||||
|
||||
Reference in New Issue
Block a user