C++11: Use member declaration initalizations. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-08-16 11:44:06 -04:00
parent 033e7ac020
commit 72d2cff0a1
117 changed files with 981 additions and 1469 deletions
+7 -7
View File
@@ -104,11 +104,11 @@ struct LifeLocation {
public:
LifeLocation()
: mtaskp(nullptr)
, sequence(0) {}
: mtaskp{nullptr}
, sequence{0} {}
LifeLocation(const ExecMTask* mtaskp_, uint32_t sequence_)
: mtaskp(mtaskp_)
, sequence(sequence_) {}
: mtaskp{mtaskp_}
, sequence{sequence_} {}
bool operator<(const LifeLocation& b) const {
unsigned a_id = mtaskp ? mtaskp->id() : 0;
unsigned b_id = b.mtaskp ? b.mtaskp->id() : 0;
@@ -122,10 +122,10 @@ struct LifePostLocation {
LifeLocation loc;
AstAssignPost* nodep;
LifePostLocation()
: nodep(nullptr) {}
: nodep{nullptr} {}
LifePostLocation(LifeLocation loc_, AstAssignPost* nodep_)
: loc(loc_)
, nodep(nodep_) {}
: loc{loc_}
, nodep{nodep_} {}
};
//######################################################################