fix memory issue?
parent
61ae482e5d
commit
8592ad6d92
|
@ -18,7 +18,7 @@ std::vector<std::string> blt::string::TableFormatter::createTable(bool top, bool
|
||||||
std::vector<std::string> table;
|
std::vector<std::string> table;
|
||||||
const auto& tableHeader = generateColumnHeader();
|
const auto& tableHeader = generateColumnHeader();
|
||||||
const auto& topSeparator = generateTopSeparator(tableHeader.size());
|
const auto& topSeparator = generateTopSeparator(tableHeader.size());
|
||||||
const auto& lineSeparator = generateSeparator(tableHeader.size());
|
const auto& lineSeparator = generateSeparator(tableHeader.size() - 1);
|
||||||
|
|
||||||
if (top)
|
if (top)
|
||||||
table.push_back(topSeparator);
|
table.push_back(topSeparator);
|
||||||
|
|
Loading…
Reference in New Issue