diff options
Diffstat (limited to 'tests/hawd/formatter.cpp')
-rw-r--r-- | tests/hawd/formatter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/hawd/formatter.cpp b/tests/hawd/formatter.cpp index 9328d44..6d1f6de 100644 --- a/tests/hawd/formatter.cpp +++ b/tests/hawd/formatter.cpp | |||
@@ -36,12 +36,11 @@ void Formatter::print(const QString &datasetName, const QStringList &cols, State | |||
36 | std::cout << QObject::tr("The dataset %1 could not be loaded; try checking it with the check command").arg(datasetName).toStdString() << std::endl; | 36 | std::cout << QObject::tr("The dataset %1 could not be loaded; try checking it with the check command").arg(datasetName).toStdString() << std::endl; |
37 | return; | 37 | return; |
38 | } | 38 | } |
39 | print(dataset); | 39 | print(dataset, cols); |
40 | } | 40 | } |
41 | 41 | ||
42 | void Formatter::print(Dataset &dataset, const QStringList &cols) | 42 | void Formatter::print(Dataset &dataset, const QStringList &cols) |
43 | { | 43 | { |
44 | QStringList cols; | ||
45 | std::cout << dataset.tableHeaders(cols).toStdString() << std::endl; | 44 | std::cout << dataset.tableHeaders(cols).toStdString() << std::endl; |
46 | dataset.eachRow( | 45 | dataset.eachRow( |
47 | [cols](const Dataset::Row &row) { | 46 | [cols](const Dataset::Row &row) { |