From d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 15 Jan 2019 13:20:05 -0800 Subject: Code style improvements (#1868) * Use modern T p = v; notation to initialize class fields * Use modern X() = default; notation for empty class constructors --- src/pass.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pass.h') 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 passInfos; @@ -253,8 +253,8 @@ public: std::string name; protected: - Pass() {} - Pass(Pass &) {} + Pass() = default; + Pass(Pass &) = default; Pass &operator=(const Pass&) = delete; }; -- cgit v1.2.3