Fix compile under windows

This commit is contained in:
Spp
2012-08-03 15:54:54 +02:00
parent 55ce180f28
commit 634776e0bc
38 changed files with 334 additions and 334 deletions

View File

@@ -27,7 +27,7 @@ namespace Trinity
{
public:
AutoPtr() : ACE_Strong_Bound_Ptr<Pointer, Lock>() {}
AutoPtr(Pointer* x)
{
ACE_Strong_Bound_Ptr<Pointer, Lock>::reset(x);

View File

@@ -175,7 +175,7 @@ bool MySQLConnection::Execute(const char* sql)
return false;
}
else
else
sLog->outDebug(LOG_FILTER_SQL, "[%u ms] SQL: %s", getMSTimeDiff(_s, getMSTime()), sql);
}

View File

@@ -2,7 +2,7 @@
#define APPENDER_H
#include "Define.h"
#include <time.h>
#include <string>
#include <map>

View File

@@ -480,12 +480,12 @@ class ByteBuffer
{
if (!sLog->ShouldLog(LOG_FILTER_NETWORKIO, LOG_LEVEL_TRACE)) // optimize disabled debug output
return;
uint32 j = 1, k = 1;
std::ostringstream o;
o << "STORAGE_SIZE: " << size();
for (uint32 i = 0; i < size(); ++i)
{
char buf[3];
@@ -501,7 +501,7 @@ class ByteBuffer
++k;
++j;
}
o << buf;
}
o << " ";