summaryrefslogtreecommitdiff
path: root/include/wabt/range.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/range.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/range.h')
-rw-r--r--include/wabt/range.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wabt/range.h b/include/wabt/range.h
index fa0310ee..15202e1e 100644
--- a/include/wabt/range.h
+++ b/include/wabt/range.h
@@ -29,8 +29,8 @@ struct Range {
T size() const { return end - start; }
};
-typedef Range<Offset> OffsetRange;
-typedef Range<int> ColumnRange;
+using OffsetRange = Range<Offset>;
+using ColumnRange = Range<int>;
} // namespace wabt