From 3d98b5bb767a2bacf791ad000e75d4ed8df1a385 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 3 Dec 2018 11:54:14 -0800 Subject: Use `= default` rather than {} for empty destructors (#1794) --- src/cfg/Relooper.h | 2 +- src/pass.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cfg/Relooper.h b/src/cfg/Relooper.h index b3a2b65f6..162fd3149 100644 --- a/src/cfg/Relooper.h +++ b/src/cfg/Relooper.h @@ -308,7 +308,7 @@ struct Shape { ShapeType Type; Shape(ShapeType TypeInit) : Id(-1), Next(NULL), Type(TypeInit) {} - virtual ~Shape() {} + virtual ~Shape() = default; virtual wasm::Expression* Render(RelooperBuilder& Builder, bool InLoop) = 0; diff --git a/src/pass.h b/src/pass.h index 326c3d5b9..8064edc32 100644 --- a/src/pass.h +++ b/src/pass.h @@ -201,7 +201,7 @@ private: // class Pass { public: - virtual ~Pass() {}; + virtual ~Pass() = default; // Override this to perform preparation work before the pass runs. // This will be called before the pass is run on a module. -- cgit v1.2.3