From a4ee0ba90c89b6aaef6b369358a01e680b18f7ac Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Sun, 29 Aug 2021 14:54:27 +0200 Subject: [PATCH] inline aliases --- test/fuzzing/chrono-timepoint.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/fuzzing/chrono-timepoint.cc b/test/fuzzing/chrono-timepoint.cc index 16aa7302..02c6c575 100644 --- a/test/fuzzing/chrono-timepoint.cc +++ b/test/fuzzing/chrono-timepoint.cc @@ -9,15 +9,13 @@ * C is a clock (std::chrono::system_clock etc) */ template void doit(const uint8_t* data, size_t size) { - using D = typename C::duration; - using TP = typename C::time_point; - using Rep = typename TP::rep; + using Rep = typename C::time_point::rep; constexpr auto N = sizeof(Rep); if (size < N) return; const auto x = assign_from_buf(data); - D dur{x}; - TP timepoint{dur}; + typename C::duration dur{x}; + typename C::time_point timepoint{dur}; data += N; size -= N; data_to_string format_str(data, size); @@ -37,8 +35,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { doit(data, size); break; case 1: - // may be the same as system_clock - doit(data, size); + // may be the same as system_clock + doit(data, size); break; case 2: // won't compile