From 40add664cca86e6c1591b9503b6ce7f568874388 Mon Sep 17 00:00:00 2001 From: Geir Storli Date: Wed, 21 Dec 2022 15:08:48 +0000 Subject: Change from typedef to using in misc C++ code. --- fbench/src/fbench/client.h | 2 +- fbench/src/util/timer.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'fbench/src') diff --git a/fbench/src/fbench/client.h b/fbench/src/fbench/client.h index f2f354a35fb..ebdcae4d6cb 100644 --- a/fbench/src/fbench/client.h +++ b/fbench/src/fbench/client.h @@ -183,7 +183,7 @@ private: void run(); public: - typedef std::unique_ptr UP; + using UP = std::unique_ptr; /** * The client arguments given to this method becomes the * responsibility of the client. diff --git a/fbench/src/util/timer.h b/fbench/src/util/timer.h index 12aa28e9247..a2ad2578ad6 100644 --- a/fbench/src/util/timer.h +++ b/fbench/src/util/timer.h @@ -17,15 +17,15 @@ class Timer { private: - typedef std::chrono::steady_clock clock; - typedef std::chrono::time_point time_point; + using clock = std::chrono::steady_clock; + using time_point = std::chrono::time_point; time_point _time; double _timespan; double _maxTime; bool _running; public: - typedef std::unique_ptr UP; + using UP = std::unique_ptr; /** * Create a new timer. **/ -- cgit v1.2.3