From 2317b4608821b03da0cc288d06b9c0bdb6b60239 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 May 2021 16:42:06 +0100 Subject: Pass linter checks Except IWYU, doesn't like the C++20 CTF. --- lib/input/mysqlConn.cpp | 4 +++- lib/input/replStream.cpp | 9 +++++++-- lib/input/replStream.h | 6 +++++- 3 files changed, 15 insertions(+), 4 deletions(-) (limited to 'lib/input') diff --git a/lib/input/mysqlConn.cpp b/lib/input/mysqlConn.cpp index 38feb35..6c00628 100644 --- a/lib/input/mysqlConn.cpp +++ b/lib/input/mysqlConn.cpp @@ -2,7 +2,9 @@ #include namespace MyGrate::Input { - MySQLConn::MySQLConn(const char * const host, const char * const user, const char * const pass, unsigned short port) + MySQLConn::MySQLConn( + const char * const host, const char * const user, const char * const pass, unsigned short port) : + st_mysql {} { mysql_init(this); if (!mysql_real_connect(this, host, user, pass, "", port, nullptr, 0)) { diff --git a/lib/input/replStream.cpp b/lib/input/replStream.cpp index 88c3caf..c894941 100644 --- a/lib/input/replStream.cpp +++ b/lib/input/replStream.cpp @@ -1,6 +1,11 @@ #include "replStream.h" -#include "../eventHandlers.h" -#include "../mariadb_repl.h" +#include "mariadb_repl.h" +#include +#include +#include +#include +#include +#include namespace MyGrate::Input { void diff --git a/lib/input/replStream.h b/lib/input/replStream.h index 983d9d3..4b1a7b6 100644 --- a/lib/input/replStream.h +++ b/lib/input/replStream.h @@ -1,8 +1,12 @@ #ifndef MYGRATE_INPUT_REPLSTREAM_H #define MYGRATE_INPUT_REPLSTREAM_H -#include "../eventSourceBase.h" #include "mysqlConn.h" +#include + +namespace MyGrate { + class EventHandlerBase; +} namespace MyGrate::Input { class ReplicationStream : public EventSourceBase, MySQLConn { -- cgit v1.2.3