From 66171449d4d16ce4dc63f4e727e22bc8a5e39bb1 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 15 Jun 2020 13:27:08 -0700 Subject: [PATCH] [clang-tidy] replace typedef with using (#886) Found with modernize-use-using Signed-off-by: Rosen Penev --- util/read.cpp | 4 ++-- util/sandbox.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/util/read.cpp b/util/read.cpp index 897ab57..b4f355c 100644 --- a/util/read.cpp +++ b/util/read.cpp @@ -8,8 +8,8 @@ class NullEventHandler : public YAML::EventHandler { public: - typedef YAML::Mark Mark; - typedef YAML::anchor_t anchor_t; + using Mark = YAML::Mark; + using anchor_t = YAML::anchor_t; NullEventHandler() = default; diff --git a/util/sandbox.cpp b/util/sandbox.cpp index ec4a66f..f21490e 100644 --- a/util/sandbox.cpp +++ b/util/sandbox.cpp @@ -6,8 +6,8 @@ class NullEventHandler : public YAML::EventHandler { public: - typedef YAML::Mark Mark; - typedef YAML::anchor_t anchor_t; + using Mark = YAML::Mark; + using anchor_t = YAML::anchor_t; NullEventHandler() = default;