summaryrefslogtreecommitdiff
path: root/src/support/archive.h
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/support/archive.h
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/support/archive.h')
-rw-r--r--src/support/archive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/archive.h b/src/support/archive.h
index 95af1ac94..0ca066ff1 100644
--- a/src/support/archive.h
+++ b/src/support/archive.h
@@ -71,7 +71,7 @@ class Archive {
Child child;
bool error = false; // TODO: use std::error_code instead?
public:
- child_iterator() {}
+ child_iterator() = default;
explicit child_iterator(bool error) : error(error) {}
child_iterator(const Child& c) : child(c) {}
const Child* operator->() const { return &child; }