Remove const from MySQLConnectionInfo, can't use non const functions in a const struct. This fixes the compile error.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2010-09-30 20:32:09 +02:00
parent 41d816740b
commit 84a29b2d35
5 changed files with 12 additions and 17 deletions

View File

@@ -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();
}