aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorAnubisss <none@none>2010-09-30 20:32:09 +0200
committerAnubisss <none@none>2010-09-30 20:32:09 +0200
commit84a29b2d351c07868ec150efcf15263f373fe9d7 (patch)
tree1aae3c638fb92fa72690ea78c0f1945588ca76f4 /src/server/shared/Database/MySQLConnection.cpp
parent41d816740bd4eb567083c825ac613301c04a89c2 (diff)
Remove const from MySQLConnectionInfo, can't use non const functions in a const struct. This fixes the compile error.
--HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.cpp')
-rw-r--r--src/server/shared/Database/MySQLConnection.cpp6
1 files changed, 3 insertions, 3 deletions
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();
}