mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: C++11 style cleanups. No functional change.
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ void V3Waiver::addEntry(V3ErrorCode errorCode, const std::string& filename,
|
||||
}
|
||||
|
||||
void V3Waiver::write(const std::string& filename) {
|
||||
const std::unique_ptr<std::ofstream> ofp(V3File::new_ofstream(filename));
|
||||
const std::unique_ptr<std::ofstream> ofp{V3File::new_ofstream(filename)};
|
||||
if (ofp->fail()) v3fatal("Can't write " << filename);
|
||||
|
||||
*ofp << "// DESCR"
|
||||
|
||||
Reference in New Issue
Block a user