diff options
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index f2e23d2e0..ad3743ad9 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -124,7 +124,7 @@ public: rows = ConvToNum<int>(PQcmdTuples(res)); } - ~PgSQLresult() + ~PgSQLresult() override { PQclear(res); } @@ -435,10 +435,10 @@ restart: { std::string res; unsigned int param = 0; - for(std::string::size_type i = 0; i < q.length(); i++) + for (const auto chr : q) { - if (q[i] != '?') - res.push_back(q[i]); + if (chr != '?') + res.push_back(chr); else { if (param < p.size()) |
