aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-04-20 16:48:35 +0200
committerShauren <shauren.trinity@gmail.com>2014-04-20 16:48:35 +0200
commit0f5632c70eb11a10225279a7d2d8b511d0095d16 (patch)
tree5b87a08861f975fbf7acb2a28293e1295f645921 /src/server/shared/Database/MySQLConnection.h
parente830225b213b4a757e40df653d5f18dfc8fb9e21 (diff)
Core/Misc: Fixed some -Weffc++ warnings
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.h')
-rw-r--r--src/server/shared/Database/MySQLConnection.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/shared/Database/MySQLConnection.h b/src/server/shared/Database/MySQLConnection.h
index 161f459a7ad..e55e3dfc23a 100644
--- a/src/server/shared/Database/MySQLConnection.h
+++ b/src/server/shared/Database/MySQLConnection.h
@@ -38,8 +38,7 @@ enum ConnectionFlags
struct MySQLConnectionInfo
{
- MySQLConnectionInfo() { }
- MySQLConnectionInfo(const std::string& infoString)
+ explicit MySQLConnectionInfo(std::string const& infoString)
{
Tokenizer tokens(infoString, ';');
@@ -132,6 +131,9 @@ class MySQLConnection
MySQLConnectionInfo& m_connectionInfo; //! Connection info (used for logging)
ConnectionFlags m_connectionFlags; //! Connection flags (for preparing relevant statements)
ACE_Thread_Mutex m_Mutex;
+
+ MySQLConnection(MySQLConnection const& right) DELETE_MEMBER;
+ MySQLConnection& operator=(MySQLConnection const& right) DELETE_MEMBER;
};
#endif