summaryrefslogtreecommitdiff
path: root/libpqpp/pq-prepared.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-16 14:20:14 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-16 14:20:14 +0000
commit1ca0cd42419656cf4a4b9e37c5f3cfb51ccafbb5 (patch)
treed25e0f98914be9875e9ebe00308b8141847c7910 /libpqpp/pq-prepared.cpp
parentMore clang tidy fixes (diff)
downloadlibdbpp-postgresql-1ca0cd42419656cf4a4b9e37c5f3cfb51ccafbb5.tar.bz2
libdbpp-postgresql-1ca0cd42419656cf4a4b9e37c5f3cfb51ccafbb5.tar.xz
libdbpp-postgresql-1ca0cd42419656cf4a4b9e37c5f3cfb51ccafbb5.zip
Modernize clang tidy fixes
Diffstat (limited to 'libpqpp/pq-prepared.cpp')
-rw-r--r--libpqpp/pq-prepared.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-prepared.cpp b/libpqpp/pq-prepared.cpp
index 6c447f8..3162349 100644
--- a/libpqpp/pq-prepared.cpp
+++ b/libpqpp/pq-prepared.cpp
@@ -21,7 +21,7 @@ PQ::PreparedStatement::prepare() const
std::stringstream psql;
prepareSql(psql, sql);
c->checkResultFree(PQprepare(
- c->conn, stmntName.c_str(), psql.str().c_str(), values.size(), NULL), PGRES_COMMAND_OK);
+ c->conn, stmntName.c_str(), psql.str().c_str(), values.size(), nullptr), PGRES_COMMAND_OK);
return (pstmt = c->preparedStatements.insert({hash, stmntName}).first->second.c_str());
}