From f39817f958295f8e6b3d018bd17b8ef4103c45a8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 5 Jul 2021 19:32:42 +0100 Subject: Explicit RowView constructor --- lib/dbRecordSet.cpp | 6 +++--- lib/dbRecordSet.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/dbRecordSet.cpp b/lib/dbRecordSet.cpp index d5e55f0..ec3db4a 100644 --- a/lib/dbRecordSet.cpp +++ b/lib/dbRecordSet.cpp @@ -39,7 +39,7 @@ namespace MyGrate { RowView RecordSet::operator[](std::size_t row) const { - return {this, row}; + return RowView {this, row}; } DbValue @@ -51,12 +51,12 @@ namespace MyGrate { RowView RecordSet::begin() const { - return {this, 0}; + return RowView {this, 0}; } RowView RecordSet::end() const { - return {this, rows()}; + return RowView {this, rows()}; } } diff --git a/lib/dbRecordSet.h b/lib/dbRecordSet.h index 3bea950..80919dc 100644 --- a/lib/dbRecordSet.h +++ b/lib/dbRecordSet.h @@ -9,7 +9,7 @@ namespace MyGrate { class RowView { public: - RowView(const RecordSet * rs, std::size_t rw = 0); + explicit RowView(const RecordSet * rs, std::size_t rw = 0); DbValue operator[](std::size_t col) const; -- cgit v1.2.3