diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-04 19:48:20 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-04 19:48:20 +0100 |
commit | 3526af7ec50e46aaa73d038566f42554f70f27b0 (patch) | |
tree | 2591708ced4743213f77c9aa4ee8933dc0d1b333 /libpqpp/pq-bulkselectcommand.cpp | |
parent | Pedantic only with gcc (diff) | |
download | libdbpp-postgresql-3526af7ec50e46aaa73d038566f42554f70f27b0.tar.bz2 libdbpp-postgresql-3526af7ec50e46aaa73d038566f42554f70f27b0.tar.xz libdbpp-postgresql-3526af7ec50e46aaa73d038566f42554f70f27b0.zip |
Fix a lot of clang-tidy warningsHEADlibdbpp-postgresql-1.4.10main
Diffstat (limited to 'libpqpp/pq-bulkselectcommand.cpp')
-rw-r--r-- | libpqpp/pq-bulkselectcommand.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libpqpp/pq-bulkselectcommand.cpp b/libpqpp/pq-bulkselectcommand.cpp index 303ed53..4fbb393 100644 --- a/libpqpp/pq-bulkselectcommand.cpp +++ b/libpqpp/pq-bulkselectcommand.cpp @@ -9,8 +9,7 @@ PQ::BulkSelectCommand::BulkSelectCommand(Connection * conn, const std::string & sql, const PQ::CommandOptionsCPtr & pqco, const DB::CommandOptionsCPtr & opts) : - DB::Command(sql), - PQ::SelectBase(sql, pqco), PQ::PreparedStatement(conn, sql, opts) + DB::Command(sql), PQ::SelectBase(sql, pqco), PQ::PreparedStatement(conn, sql, opts) { } @@ -34,8 +33,6 @@ PQ::BulkSelectCommand::fetch() if (++tuple < nTuples) { return true; } - else { - execRes.reset(); - return false; - } + execRes.reset(); + return false; } |