From 16f05e73b9f58b3a970ede88492bf32cab41078b Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Thu, 8 Nov 2012 18:24:00 -0600 Subject: [PATCH] Reverted last change --- include/yaml-cpp/emitter.h | 2 +- include/yaml-cpp/exceptions.h | 2 +- include/yaml-cpp/mark.h | 2 +- src/emitter.cpp | 2 +- src/scanner.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/yaml-cpp/emitter.h b/include/yaml-cpp/emitter.h index 927fe6c..4230e7d 100644 --- a/include/yaml-cpp/emitter.h +++ b/include/yaml-cpp/emitter.h @@ -62,7 +62,7 @@ namespace YAML Emitter& Write(const _Anchor& anchor); Emitter& Write(const _Tag& tag); Emitter& Write(const _Comment& comment); - Emitter& Write(const _Null& n); + Emitter& Write(const _Null& null); Emitter& Write(const Binary& binary); template diff --git a/include/yaml-cpp/exceptions.h b/include/yaml-cpp/exceptions.h index 2c6b7b1..00848f4 100644 --- a/include/yaml-cpp/exceptions.h +++ b/include/yaml-cpp/exceptions.h @@ -90,7 +90,7 @@ namespace YAML class EmitterException: public Exception { public: EmitterException(const std::string& msg_) - : Exception(Mark::null_mark(), msg_) {} + : Exception(Mark::null(), msg_) {} }; } diff --git a/include/yaml-cpp/mark.h b/include/yaml-cpp/mark.h index e07b317..7c80fbc 100644 --- a/include/yaml-cpp/mark.h +++ b/include/yaml-cpp/mark.h @@ -13,7 +13,7 @@ namespace YAML struct YAML_CPP_API Mark { Mark(): pos(0), line(0), column(0) {} - static const Mark null_mark() { return Mark(-1, -1, -1); } + static const Mark null() { return Mark(-1, -1, -1); } int pos; int line, column; diff --git a/src/emitter.cpp b/src/emitter.cpp index c694aee..8a5a706 100644 --- a/src/emitter.cpp +++ b/src/emitter.cpp @@ -920,7 +920,7 @@ namespace YAML return *this; } - Emitter& Emitter::Write(const _Null& /*n*/) + Emitter& Emitter::Write(const _Null& /*null*/) { if(!good()) return *this; diff --git a/src/scanner.cpp b/src/scanner.cpp index 66cce0a..767637e 100644 --- a/src/scanner.cpp +++ b/src/scanner.cpp @@ -383,7 +383,7 @@ namespace YAML // . Does not parse any more tokens. void Scanner::ThrowParserException(const std::string& msg) const { - Mark mark = Mark::null_mark(); + Mark mark = Mark::null(); if(!m_tokens.empty()) { const Token& token = m_tokens.front(); mark = token.mark;