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