summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-s-parser.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-01-15 13:20:05 -0800
committerGitHub <noreply@github.com>2019-01-15 13:20:05 -0800
commitd24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead (patch)
tree37575895001e5dd9509c5c42fd539253516e21fd /src/wasm/wasm-s-parser.cpp
parent45714b5fc6cf14c112bc4f188aca427464ab69d8 (diff)
downloadbinaryen-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/wasm/wasm-s-parser.cpp')
-rw-r--r--src/wasm/wasm-s-parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp
index f5280bc33..96686cd4d 100644
--- a/src/wasm/wasm-s-parser.cpp
+++ b/src/wasm/wasm-s-parser.cpp
@@ -104,7 +104,7 @@ void Element::dump() {
}
-SExpressionParser::SExpressionParser(char* input) : input(input), loc(nullptr) {
+SExpressionParser::SExpressionParser(char* input) : input(input) {
root = nullptr;
line = 1;
lineStart = input;
@@ -253,7 +253,7 @@ Element* SExpressionParser::parseString() {
return ret;
}
-SExpressionWasmBuilder::SExpressionWasmBuilder(Module& wasm, Element& module, Name* moduleName) : wasm(wasm), allocator(wasm.allocator), globalCounter(0) {
+SExpressionWasmBuilder::SExpressionWasmBuilder(Module& wasm, Element& module, Name* moduleName) : wasm(wasm), allocator(wasm.allocator) {
if (module.size() == 0) throw ParseException("empty toplevel, expected module");
if (module[0]->str() != MODULE) throw ParseException("toplevel does not start with module");
if (module.size() == 1) return;