mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Fix constructor style.
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user