From fad60d0bff6bebf46e3ff0b6d1636d67ca64cfba Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 2 Jun 2020 21:27:16 -0700 Subject: [PATCH] [clang-tidy] replace typedef with using 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 fc88f1f..68e0333 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() {} diff --git a/util/sandbox.cpp b/util/sandbox.cpp index 1df25bb..872b5d1 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() {}