From f40e3690b8e8d43a48f5ec3cec0179fda7fc9880 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 27 Jul 2022 22:46:13 +0100 Subject: Modernize LoadContext initialization --- libmysqlpp/my-connection.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libmysqlpp') diff --git a/libmysqlpp/my-connection.cpp b/libmysqlpp/my-connection.cpp index 2e63d62..d7e0659 100644 --- a/libmysqlpp/my-connection.cpp +++ b/libmysqlpp/my-connection.cpp @@ -145,7 +145,7 @@ MySQL::Connection::modify(const std::string & sql, const DB::CommandOptionsCPtr namespace MySQL { class LoadContext : public AdHoc::System::RuntimeContext { public: - explicit LoadContext(MYSQL * c) : loadBuf(nullptr), loadBufLen(0), bufOff(0), conn(c), loadReturn(0) { } + explicit LoadContext(MYSQL * c) : conn(c) { } static int local_infile_init(void ** ptr, const char *, void * ctx) @@ -188,11 +188,11 @@ namespace MySQL { loadReturn = mysql_read_query_result(conn); } - const char * loadBuf; - size_t loadBufLen; - size_t bufOff; MYSQL * conn; - int loadReturn; + const char * loadBuf {}; + size_t loadBufLen {}; + size_t bufOff {}; + int loadReturn {}; }; } -- cgit v1.2.3