summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/dbRecordSet.cpp6
-rw-r--r--lib/dbRecordSet.h2
2 files changed, 4 insertions, 4 deletions
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;