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/emscripten-optimizer/optimizer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emscripten-optimizer/optimizer.h') diff --git a/src/emscripten-optimizer/optimizer.h b/src/emscripten-optimizer/optimizer.h index c3939abf4..12d7c1433 100644 --- a/src/emscripten-optimizer/optimizer.h +++ b/src/emscripten-optimizer/optimizer.h @@ -59,7 +59,7 @@ AsmType detectType(cashew::Ref node, AsmData *asmData=nullptr, bool inVarDef=fal struct AsmData { struct Local { - Local() {} + Local() = default; Local(AsmType type, bool param) : type(type), param(param) {} AsmType type; bool param; // false if a var @@ -92,7 +92,7 @@ struct AsmData { return isLocal(name) && !locals[name].param; } - AsmData() {} // if you want to fill in the data yourself + AsmData() = default; // if you want to fill in the data yourself AsmData(cashew::Ref f); // if you want to read data from f, and modify it as you go (parallel to denormalize) void denormalize(); -- cgit v1.2.3