From 9e39e9c72b05110a72ef4e84b4bec8bf3c2404f9 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 10 Aug 2015 00:48:36 +0200 Subject: Use the HAWD::Formatter --- tests/hawd/formatter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/hawd') 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 std::cout << QObject::tr("The dataset %1 could not be loaded; try checking it with the check command").arg(datasetName).toStdString() << std::endl; return; } - print(dataset); + print(dataset, cols); } void Formatter::print(Dataset &dataset, const QStringList &cols) { - QStringList cols; std::cout << dataset.tableHeaders(cols).toStdString() << std::endl; dataset.eachRow( [cols](const Dataset::Row &row) { -- cgit v1.2.3