mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
Access string npos without instance
This commit is contained in:
committed by
Brad King
parent
389ed56f63
commit
8b6f439ef2
@@ -24,7 +24,7 @@ std::string cmMSVC60LinkLineComputer::ConvertToLinkReference(
|
||||
// Work-ardound command line parsing limitations in MSVC 6.0
|
||||
// Search for the last space.
|
||||
std::string::size_type pos = lib.rfind(' ');
|
||||
if (pos != lib.npos) {
|
||||
if (pos != std::string::npos) {
|
||||
// Find the slash after the last space, if any.
|
||||
pos = lib.find('/', pos);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user