summaryrefslogtreecommitdiff
path: root/libpqpp/pq-selectbase.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-17 16:16:11 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-17 16:16:11 +0000
commitd7ff2e0d651d6b0bc24cf2b173613d6386576bc4 (patch)
tree71a4cb0834503115ca84dc097a2b5394ac95cd99 /libpqpp/pq-selectbase.cpp
parentModernize clang tidy fixes (diff)
downloadlibdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.tar.bz2
libdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.tar.xz
libdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.zip
Enable hicpp checks and fix accordingly
Diffstat (limited to 'libpqpp/pq-selectbase.cpp')
-rw-r--r--libpqpp/pq-selectbase.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpqpp/pq-selectbase.cpp b/libpqpp/pq-selectbase.cpp
index 0950d37..93dee50 100644
--- a/libpqpp/pq-selectbase.cpp
+++ b/libpqpp/pq-selectbase.cpp
@@ -25,10 +25,12 @@ PQ::SelectBase::createColumns(PGresult * execRes)
{
unsigned int nFields = PQnfields(execRes);
for (unsigned int f = 0; f < nFields; f += 1) {
- if (binary)
+ if (binary) {
insertColumn(std::make_unique<BinaryColumn>(this, f));
- else
+ }
+ else {
insertColumn(std::make_unique<Column>(this, f));
+ }
}
}