Renamed all variables named 'null'

This commit is contained in:
Jesse Beder 2012-11-08 18:21:00 -06:00
parent 979a91692f
commit 06e09d1d64
5 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ namespace YAML
Emitter& Write(const _Anchor& anchor); Emitter& Write(const _Anchor& anchor);
Emitter& Write(const _Tag& tag); Emitter& Write(const _Tag& tag);
Emitter& Write(const _Comment& comment); Emitter& Write(const _Comment& comment);
Emitter& Write(const _Null& null); Emitter& Write(const _Null& n);
Emitter& Write(const Binary& binary); Emitter& Write(const Binary& binary);
template <typename T> template <typename T>

View File

@ -90,7 +90,7 @@ namespace YAML
class EmitterException: public Exception { class EmitterException: public Exception {
public: public:
EmitterException(const std::string& msg_) EmitterException(const std::string& msg_)
: Exception(Mark::null(), msg_) {} : Exception(Mark::null_mark(), msg_) {}
}; };
} }

View File

@ -13,7 +13,7 @@ namespace YAML
struct YAML_CPP_API Mark { struct YAML_CPP_API Mark {
Mark(): pos(0), line(0), column(0) {} Mark(): pos(0), line(0), column(0) {}
static const Mark null() { return Mark(-1, -1, -1); } static const Mark null_mark() { return Mark(-1, -1, -1); }
int pos; int pos;
int line, column; int line, column;

View File

@ -920,7 +920,7 @@ namespace YAML
return *this; return *this;
} }
Emitter& Emitter::Write(const _Null& /*null*/) Emitter& Emitter::Write(const _Null& /*n*/)
{ {
if(!good()) if(!good())
return *this; return *this;

View File

@ -383,7 +383,7 @@ namespace YAML
// . Does not parse any more tokens. // . Does not parse any more tokens.
void Scanner::ThrowParserException(const std::string& msg) const void Scanner::ThrowParserException(const std::string& msg) const
{ {
Mark mark = Mark::null(); Mark mark = Mark::null_mark();
if(!m_tokens.empty()) { if(!m_tokens.empty()) {
const Token& token = m_tokens.front(); const Token& token = m_tokens.front();
mark = token.mark; mark = token.mark;