mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdDenotate: Code cleanup
This commit is contained in:
parent
24d5be3e14
commit
613911dc10
1 changed files with 8 additions and 8 deletions
|
@ -56,9 +56,9 @@ CmdDenotate::CmdDenotate ()
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int CmdDenotate::execute (std::string&)
|
int CmdDenotate::execute (std::string&)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
auto rc = 0;
|
||||||
int count = 0;
|
auto count = 0;
|
||||||
bool sensitive = context.config.getBoolean ("search.case.sensitive");
|
auto sensitive = context.config.getBoolean ("search.case.sensitive");
|
||||||
|
|
||||||
// Apply filter.
|
// Apply filter.
|
||||||
Filter filter;
|
Filter filter;
|
||||||
|
@ -96,7 +96,7 @@ int CmdDenotate::execute (std::string&)
|
||||||
throw std::string (STRING_CMD_DENO_NONE);
|
throw std::string (STRING_CMD_DENO_NONE);
|
||||||
|
|
||||||
std::string anno;
|
std::string anno;
|
||||||
bool match = false;
|
auto match = false;
|
||||||
for (auto i = annotations.begin (); i != annotations.end (); ++i)
|
for (auto i = annotations.begin (); i != annotations.end (); ++i)
|
||||||
{
|
{
|
||||||
if (i->second == pattern)
|
if (i->second == pattern)
|
||||||
|
@ -126,7 +126,7 @@ int CmdDenotate::execute (std::string&)
|
||||||
|
|
||||||
if (before.data != task.data)
|
if (before.data != task.data)
|
||||||
{
|
{
|
||||||
std::string question = format (STRING_CMD_DENO_CONFIRM,
|
auto question = format (STRING_CMD_DENO_CONFIRM,
|
||||||
task.identifier (true),
|
task.identifier (true),
|
||||||
task.get ("description"));
|
task.get ("description"));
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ int CmdDenotate::execute (std::string&)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now list the project changes.
|
// Now list the project changes.
|
||||||
for (auto& change : projectChanges)
|
for (const auto& change : projectChanges)
|
||||||
if (change.first != "")
|
if (change.first != "")
|
||||||
context.footnote (change.second);
|
context.footnote (change.second);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue