summaryrefslogtreecommitdiff
path: root/src/dal/recordset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dal/recordset.cpp')
-rw-r--r--src/dal/recordset.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/dal/recordset.cpp b/src/dal/recordset.cpp
index 49c245cd..69104933 100644
--- a/src/dal/recordset.cpp
+++ b/src/dal/recordset.cpp
@@ -161,27 +161,16 @@ std::ostream &operator<<(std::ostream &out, const RecordSet &rhs)
// print the field names first.
if (rhs.mHeaders.size() > 0) {
out << "|";
- for (auto it = rhs.mHeaders.begin();
- it != rhs.mHeaders.end();
- ++it)
- {
- out << (*it) << "|";
- }
+ for (const auto &header : rhs.mHeaders)
+ out << header << "|";
out << std::endl << std::endl;
}
// and then print every line.
- for (auto it = rhs.mRows.begin();
- it != rhs.mRows.end();
- ++it)
- {
+ for (const auto &row : rhs.mRows) {
out << "|";
- for (auto it2 = (*it).begin();
- it2 != (*it).end();
- ++it2)
- {
- out << (*it2) << "|";
- }
+ for (const auto &element : row)
+ out << element << "|";
out << std::endl;
}