mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Context
- Removed the restriction that debug messages must be unique. Because it's insane.
This commit is contained in:
parent
7e2582f2b8
commit
d873a15aa7
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue