mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdAttributes: Code cleanup
This commit is contained in:
parent
e207cc9eab
commit
c646d7c9d2
1 changed files with 2 additions and 2 deletions
|
@ -55,11 +55,11 @@ CmdZshAttributes::CmdZshAttributes ()
|
|||
int CmdZshAttributes::execute (std::string& output)
|
||||
{
|
||||
// Get a list of all columns, sort them.
|
||||
std::vector <std::string> columns = context.getColumns ();
|
||||
auto columns = context.getColumns ();
|
||||
std::sort (columns.begin (), columns.end ());
|
||||
|
||||
std::stringstream out;
|
||||
for (auto& col : columns)
|
||||
for (const auto& col : columns)
|
||||
out << col << ':' << col << '\n';
|
||||
|
||||
output = out.str ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue