From 84a29b2d351c07868ec150efcf15263f373fe9d7 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Thu, 30 Sep 2010 20:32:09 +0200 Subject: Remove const from MySQLConnectionInfo, can't use non const functions in a const struct. This fixes the compile error. --HG-- branch : trunk --- src/server/shared/Database/MySQLConnection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/shared/Database/MySQLConnection.cpp') diff --git a/src/server/shared/Database/MySQLConnection.cpp b/src/server/shared/Database/MySQLConnection.cpp index cac23e1fd88..c16e42b71d6 100644 --- a/src/server/shared/Database/MySQLConnection.cpp +++ b/src/server/shared/Database/MySQLConnection.cpp @@ -32,7 +32,7 @@ #include "DatabaseWorker.h" #include "Timer.h" -MySQLConnection::MySQLConnection(const MySQLConnectionInfo& connInfo) : +MySQLConnection::MySQLConnection(MySQLConnectionInfo& connInfo) : m_connectionInfo(connInfo), m_queue(NULL), m_worker(NULL), @@ -40,7 +40,7 @@ m_Mysql(NULL) { } -MySQLConnection::MySQLConnection(ACE_Activation_Queue* queue, const MySQLConnectionInfo& connInfo) : +MySQLConnection::MySQLConnection(ACE_Activation_Queue* queue, MySQLConnectionInfo& connInfo) : m_connectionInfo(connInfo), m_queue(queue), m_Mysql(NULL) @@ -98,7 +98,7 @@ bool MySQLConnection::Open() { unsigned int opt = MYSQL_PROTOCOL_SOCKET; mysql_options(mysqlInit, MYSQL_OPT_PROTOCOL, (char const*)&opt); - m_connectionInfo.ChangeHost("localhost"); + m_connectionInfo.host = "localhost"; port = 0; unix_socket = m_connectionInfo.port_or_socket.c_str(); } -- cgit v1.2.3