diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-01-15 13:20:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-15 13:20:05 -0800 |
commit | d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead (patch) | |
tree | 37575895001e5dd9509c5c42fd539253516e21fd /src/passes/Print.cpp | |
parent | 45714b5fc6cf14c112bc4f188aca427464ab69d8 (diff) | |
download | binaryen-d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead.tar.gz binaryen-d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead.tar.bz2 binaryen-d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead.zip |
Code style improvements (#1868)
* Use modern T p = v; notation to initialize class fields
* Use modern X() = default; notation for empty class constructors
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index e544447fe..3de8b5c01 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -1350,7 +1350,7 @@ Pass *createPrinterPass() { class MinifiedPrinter : public Printer { public: - MinifiedPrinter() : Printer() {} + MinifiedPrinter() = default; MinifiedPrinter(std::ostream* o) : Printer(o) {} void run(PassRunner* runner, Module* module) override { @@ -1368,7 +1368,7 @@ Pass *createMinifiedPrinterPass() { class FullPrinter : public Printer { public: - FullPrinter() : Printer() {} + FullPrinter() = default; FullPrinter(std::ostream* o) : Printer(o) {} void run(PassRunner* runner, Module* module) override { @@ -1386,7 +1386,7 @@ Pass *createFullPrinterPass() { class PrintStackIR : public Printer { public: - PrintStackIR() : Printer() {} + PrintStackIR() = default; PrintStackIR(std::ostream* o) : Printer(o) {} void run(PassRunner* runner, Module* module) override { |