diff options
author | 2021-07-14 12:45:13 +0100 | |
---|---|---|
committer | 2021-07-14 15:18:36 +0000 | |
commit | 4f990714b13e0b4446305a5411648a1a9ae42a7a (patch) | |
tree | 4568386e3e6f3c98c819851f6573e2c7cbc184fb /libartbase/base/utils.h | |
parent | 7744b69abf073101b09b9043f0f0eb109768fcfe (diff) |
Modernize typedefs with `using`.
Replace many occurences of `typedef` with `using`. For now,
do not update typedefs for function types and aligned types
and do not touch some parts such as jvmti or dmtracedump.
Test: m
Change-Id: Ie97ecbc5abf7e7109ef4b01f208752e2dc26c36d
Diffstat (limited to 'libartbase/base/utils.h')
-rw-r--r-- | libartbase/base/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libartbase/base/utils.h b/libartbase/base/utils.h index 7160302daa..0e8231a92c 100644 --- a/libartbase/base/utils.h +++ b/libartbase/base/utils.h @@ -101,7 +101,7 @@ static inline const void* EntryPointToCodePointer(const void* entry_point) { #if defined(__BIONIC__) struct Arc4RandomGenerator { - typedef uint32_t result_type; + using result_type = uint32_t; static constexpr uint32_t min() { return std::numeric_limits<uint32_t>::min(); } static constexpr uint32_t max() { return std::numeric_limits<uint32_t>::max(); } uint32_t operator() () { return arc4random(); } |