diff options
author | Sam Clegg <sbc@chromium.org> | 2022-11-15 09:18:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 17:18:19 +0000 |
commit | 7566af8c129d92720e91472adc63dd308f751a9d (patch) | |
tree | 11d0696ae4f55b4fbcdb0c2456194e1e0681ebdd /include/wabt/option-parser.h | |
parent | d3e4ab30720c48d0c019fa521d70362b1bdd2bae (diff) | |
download | wabt-7566af8c129d92720e91472adc63dd308f751a9d.tar.gz wabt-7566af8c129d92720e91472adc63dd308f751a9d.tar.bz2 wabt-7566af8c129d92720e91472adc63dd308f751a9d.zip |
Switch from `typedef` to using `using` in C++ code. NFC (#2066)
This is more modern and (IMHO) easier to read than that old C typedef
syntax.
Diffstat (limited to 'include/wabt/option-parser.h')
-rw-r--r-- | include/wabt/option-parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wabt/option-parser.h b/include/wabt/option-parser.h index fbc70a80..0203ce0c 100644 --- a/include/wabt/option-parser.h +++ b/include/wabt/option-parser.h @@ -31,8 +31,8 @@ class OptionParser { enum class ArgumentCount { One, OneOrMore, ZeroOrMore }; struct Option; - typedef std::function<void(const char*)> Callback; - typedef std::function<void()> NullCallback; + using Callback = std::function<void(const char*)>; + using NullCallback = std::function<void()>; struct Option { Option(char short_name, |