diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-10 00:48:36 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-10 00:48:36 +0200 |
commit | 9e39e9c72b05110a72ef4e84b4bec8bf3c2404f9 (patch) | |
tree | 2d104f48e243bd3496eeb6fbed359b79ac13c42c /tests/hawd/formatter.cpp | |
parent | 3b928327401547fe32e5b60d47fa772c0d12280d (diff) | |
download | sink-9e39e9c72b05110a72ef4e84b4bec8bf3c2404f9.tar.gz sink-9e39e9c72b05110a72ef4e84b4bec8bf3c2404f9.zip |
Use the HAWD::Formatter
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) { |