Internals: Fix constructor style.

This commit is contained in:
Wilson Snyder
2022-11-20 13:11:01 -05:00
parent a60e273c29
commit 352d0b4582
34 changed files with 230 additions and 226 deletions
+2 -2
View File
@@ -279,7 +279,7 @@ FileLine* FileLine::copyOrSameFileLine() {
if (lastNewp && *lastNewp == *this) { // Compares lineno, filename, etc
return lastNewp;
}
FileLine* const newp = new FileLine(this);
FileLine* const newp = new FileLine{this};
lastNewp = newp;
return newp;
}
@@ -340,7 +340,7 @@ bool FileLine::warnOff(const string& msg, bool flag) {
warnOff(V3ErrorCode::UNUSEDSIGNAL, flag);
return true;
}
const V3ErrorCode code(cmsg);
const V3ErrorCode code{cmsg};
if (code < V3ErrorCode::EC_FIRST_WARN) {
return false;
} else {