- Removed the restriction that debug messages must be unique. Because it's
  insane.
This commit is contained in:
Paul Beckingham 2014-10-19 01:30:24 -04:00
parent 7e2582f2b8
commit d873a15aa7

View file

@ -775,6 +775,7 @@ void Context::propagateDebug ()
}
////////////////////////////////////////////////////////////////////////////////
// No duplicates.
void Context::header (const std::string& input)
{
if (input.length () &&
@ -783,6 +784,7 @@ void Context::header (const std::string& input)
}
////////////////////////////////////////////////////////////////////////////////
// No duplicates.
void Context::footnote (const std::string& input)
{
if (input.length () &&
@ -791,6 +793,7 @@ void Context::footnote (const std::string& input)
}
////////////////////////////////////////////////////////////////////////////////
// No duplicates.
void Context::error (const std::string& input)
{
if (input.length () &&
@ -801,8 +804,7 @@ void Context::error (const std::string& input)
////////////////////////////////////////////////////////////////////////////////
void Context::debug (const std::string& input)
{
if (input.length () &&
std::find (debugMessages.begin (), debugMessages.end (), input) == debugMessages.end ())
if (input.length ())
debugMessages.push_back (input);
}