mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 03:42:37 +01:00
Fix compile under windows
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define APPENDER_H
|
||||
|
||||
#include "Define.h"
|
||||
|
||||
#include <time.h>
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
|
||||
@@ -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 << " ";
|
||||
|
||||
Reference in New Issue
Block a user