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/pass.h | |
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/pass.h')
-rw-r--r-- | src/pass.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pass.h b/src/pass.h index 0a3d85e02..78d1f594e 100644 --- a/src/pass.h +++ b/src/pass.h @@ -49,7 +49,7 @@ private: struct PassInfo { std::string description; Creator create; - PassInfo() {} + PassInfo() = default; PassInfo(std::string description, Creator create) : description(description), create(create) {} }; std::map<std::string, PassInfo> passInfos; @@ -253,8 +253,8 @@ public: std::string name; protected: - Pass() {} - Pass(Pass &) {} + Pass() = default; + Pass(Pass &) = default; Pass &operator=(const Pass&) = delete; }; |