CmdAttributes: Code cleanup
This commit is contained in:
@@ -55,11 +55,11 @@ CmdZshAttributes::CmdZshAttributes ()
|
|||||||
int CmdZshAttributes::execute (std::string& output)
|
int CmdZshAttributes::execute (std::string& output)
|
||||||
{
|
{
|
||||||
// Get a list of all columns, sort them.
|
// 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::sort (columns.begin (), columns.end ());
|
||||||
|
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
for (auto& col : columns)
|
for (const auto& col : columns)
|
||||||
out << col << ':' << col << '\n';
|
out << col << ':' << col << '\n';
|
||||||
|
|
||||||
output = out.str ();
|
output = out.str ();
|
||||||
|
|||||||
Reference in New Issue
Block a user