From e8ef2fbd339afd8113bd92d371bc49d7d570c32f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Aug 2017 11:17:42 +0200 Subject: Cosmetic cleanup --- build2/cc/common.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx index 6f51662..5dc61b6 100644 --- a/build2/cc/common.cxx +++ b/build2/cc/common.cxx @@ -905,8 +905,8 @@ namespace build2 // /LIBPATH: (case-insensitive). // if ((o[0] == '/' || o[0] == '-') && - casecmp (i->c_str () + 1, "LIBPATH:", 8) == 0) - d = dir_path (*i, 9, string::npos); + casecmp (o.c_str () + 1, "LIBPATH:", 8) == 0) + d = dir_path (o, 9, string::npos); else continue; } @@ -914,15 +914,15 @@ namespace build2 { // -L can either be in the "-L" or "-L " form. // - if (*i == "-L") + if (o == "-L") { if (++i == e) break; // Let the compiler complain. d = dir_path (*i); } - else if (i->compare (0, 2, "-L") == 0) - d = dir_path (*i, 2, string::npos); + else if (o.compare (0, 2, "-L") == 0) + d = dir_path (o, 2, string::npos); else continue; } -- cgit v1.1