summaryrefslogtreecommitdiff
path: root/src/passes/Strip.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-11-15 10:02:27 -0800
committerGitHub <noreply@github.com>2022-11-15 18:02:27 +0000
commit59cbdd818dc3397a823a37e9821fd32f4522b2fc (patch)
tree58470bfc11591d2e70f1b79645061c1a23beb75d /src/passes/Strip.cpp
parent236f12f7df64f10e1238bf2d66b1216f700b15df (diff)
downloadbinaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.tar.gz
binaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.tar.bz2
binaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.zip
Switch from `typedef` to `using` in C++ code. NFC (#5258)
This is more modern and (IMHO) easier to read than that old C typedef syntax.
Diffstat (limited to 'src/passes/Strip.cpp')
-rw-r--r--src/passes/Strip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Strip.cpp b/src/passes/Strip.cpp
index 00cd87ae0..fe3476202 100644
--- a/src/passes/Strip.cpp
+++ b/src/passes/Strip.cpp
@@ -31,7 +31,7 @@ struct Strip : public Pass {
bool requiresNonNullableLocalFixups() override { return false; }
// A function that returns true if the method should be removed.
- typedef std::function<bool(UserSection&)> Decider;
+ using Decider = std::function<bool(UserSection&)>;
Decider decider;
Strip(Decider decider) : decider(decider) {}