From ef16da27477a2a234cab8aed1e072555d6bb410e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Feb 2019 13:30:22 +0000 Subject: Bring inline with clang-tidy checks --- libsqlitepp/sqlite-command.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libsqlitepp/sqlite-command.cpp') diff --git a/libsqlitepp/sqlite-command.cpp b/libsqlitepp/sqlite-command.cpp index adaf41e..0ae59d1 100644 --- a/libsqlitepp/sqlite-command.cpp +++ b/libsqlitepp/sqlite-command.cpp @@ -1,13 +1,14 @@ #include "sqlite-command.h" #include "sqlite-connection.h" -#include -#include +#include +#include SQLite::Command::Command(const Connection * conn, const std::string & sql) : DB::Command(sql), - c(conn) + c(conn), + stmt(nullptr) { - if (sqlite3_prepare_v2(conn->db, sql.c_str(), sql.length(), &stmt, NULL) != SQLITE_OK) { + if (sqlite3_prepare_v2(conn->db, sql.c_str(), sql.length(), &stmt, nullptr) != SQLITE_OK) { throw Error(conn->db); } } -- cgit v1.2.3