aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-18 12:09:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-18 12:09:08 +0200
commit8d6c00d45d7815240d6e3a46128737e03ca73c50 (patch)
tree4fbf395cf4736293acfeb1ed92a6eee4a34fccbb
parent774bfb559ecaef2aac1dcb7a0414bc6895a9b9d5 (diff)
Cosmetic changes
-rw-r--r--build2/cxx/link.cxx1
-rw-r--r--build2/target10
2 files changed, 5 insertions, 6 deletions
diff --git a/build2/cxx/link.cxx b/build2/cxx/link.cxx
index 5792615..762349b 100644
--- a/build2/cxx/link.cxx
+++ b/build2/cxx/link.cxx
@@ -658,7 +658,6 @@ namespace build2
if (pt == nullptr)
pt = &search (oso ? objso::static_type : obja::static_type,
p.key ());
-
}
else if (lib* l = pt->is_a<lib> ())
{
diff --git a/build2/target b/build2/target
index be0eff9..8d2a22d 100644
--- a/build2/target
+++ b/build2/target
@@ -513,8 +513,8 @@ namespace build2
operator!= (const iterator& x, const iterator& y) {return !(x == y);}
private:
- target* t_ {nullptr};
- prerequisites_type* c_ {nullptr};
+ target* t_ = nullptr;
+ prerequisites_type* c_ = nullptr;
base_iterator i_;
};
@@ -908,12 +908,12 @@ namespace build2
return t->mtime_;
}
+ // Note that while we can cache the mtime at any time, it may be ignored
+ // if the target state is group (see the mtime() accessor).
+ //
void
mtime (timestamp mt)
{
- // While we can cache the mtime at any time, it may be ignored
- // if the target state is group (see the mtime() accessor).
- //
mtime_ = mt;
}