aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-02 11:17:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-02 11:33:51 +0200
commite8ef2fbd339afd8113bd92d371bc49d7d570c32f (patch)
tree2efe5283cf4bf29ef57a3fb7dfe10bf044d8f61a
parent39ffd0aa34f0b819f5026e308ac057654a5fbda6 (diff)
Cosmetic cleanup
-rw-r--r--build2/cc/common.cxx10
1 files 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:<dir> (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<dir>" or "-L <dir>" 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;
}