CmdAttributes: Code cleanup

This commit is contained in:
Paul Beckingham 2017-01-28 17:49:28 -05:00
parent e207cc9eab
commit c646d7c9d2

View file

@ -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 ();