summaryrefslogtreecommitdiff
path: root/include/wabt/binary-writer-spec.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-11-15 09:18:19 -0800
committerGitHub <noreply@github.com>2022-11-15 17:18:19 +0000
commit7566af8c129d92720e91472adc63dd308f751a9d (patch)
tree11d0696ae4f55b4fbcdb0c2456194e1e0681ebdd /include/wabt/binary-writer-spec.h
parentd3e4ab30720c48d0c019fa521d70362b1bdd2bae (diff)
downloadwabt-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/binary-writer-spec.h')
-rw-r--r--include/wabt/binary-writer-spec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wabt/binary-writer-spec.h b/include/wabt/binary-writer-spec.h
index 5cfa95e7..168c65ef 100644
--- a/include/wabt/binary-writer-spec.h
+++ b/include/wabt/binary-writer-spec.h
@@ -35,8 +35,8 @@ struct FilenameMemoryStreamPair {
std::unique_ptr<MemoryStream> stream;
};
-typedef std::function<Stream*(std::string_view filename)>
- WriteBinarySpecStreamFactory;
+using WriteBinarySpecStreamFactory =
+ std::function<Stream*(std::string_view filename)>;
Result WriteBinarySpecScript(Stream* json_stream,
WriteBinarySpecStreamFactory module_stream_factory,