Access string npos without instance

This commit is contained in:
Pavel Solodovnikov
2017-05-30 22:37:46 +03:00
committed by Brad King
parent 389ed56f63
commit 8b6f439ef2
44 changed files with 199 additions and 184 deletions
+1 -1
View File
@@ -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);