From dbd5ac094622ef3b3951e71c31f59e02c930dc4b Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Thu, 9 Apr 2020 16:48:50 +0100 Subject: [PATCH] Address review comments --- include/yaml-cpp/depthguard.h | 2 +- src/depthguard.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/yaml-cpp/depthguard.h b/include/yaml-cpp/depthguard.h index 353fcab..8ca61ac 100644 --- a/include/yaml-cpp/depthguard.h +++ b/include/yaml-cpp/depthguard.h @@ -23,7 +23,7 @@ class DeepRecursion : public ParserException { public: virtual ~DeepRecursion() = default; - DeepRecursion(int at_depth, const Mark& mark_, const std::string& msg_); + DeepRecursion(int depth, const Mark& mark_, const std::string& msg_); // Returns the recursion depth when the exception was thrown int depth() const { diff --git a/src/depthguard.cpp b/src/depthguard.cpp index 4cfa280..b88cd34 100644 --- a/src/depthguard.cpp +++ b/src/depthguard.cpp @@ -2,9 +2,9 @@ namespace YAML { -DeepRecursion::DeepRecursion(int at_depth, const Mark& mark_, const std::string& msg_) +DeepRecursion::DeepRecursion(int depth, const Mark& mark_, const std::string& msg_) : ParserException(mark_, msg_), - m_depth(at_depth) { + m_depth(depth) { } } // namespace YAML