From 24b4b8754be79aa976991c3b429751e6a7f0dffc Mon Sep 17 00:00:00 2001 From: Xie Han <63350856@qq.com> Date: Sat, 17 Aug 2024 18:56:24 +0800 Subject: [PATCH] Add 'this->' and fix typo. --- src/client/WFMySQLConnection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/WFMySQLConnection.h b/src/client/WFMySQLConnection.h index 6b7566b9..3f45228f 100644 --- a/src/client/WFMySQLConnection.h +++ b/src/client/WFMySQLConnection.h @@ -34,7 +34,7 @@ public: * address resovled will be used. Don't use upstream name as a host. */ int init(const std::string& url) { - return init(url, NULL); + return this->init(url, NULL); } int init(const std::string& url, SSL_CTX *ssl_ctx); @@ -79,7 +79,7 @@ protected: int id; public: - /* Make sure that cocurrent connections have different id. + /* Make sure that concurrent connections have different id. * When a connection object is deleted, id can be reused. */ WFMySQLConnection(int id) { this->id = id; } virtual ~WFMySQLConnection() { }