summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-09-25 17:45:11 +0200
committerworktycho <work.tycho@gmail.com>2015-09-25 17:45:11 +0200
commit335374376bff16459eb3e3585a93f931e1b3c306 (patch)
tree3b6665c38ce5881b0d8345ee7bc495a5b97a0457 /src/ClientHandle.cpp
parentMerge pull request #2491 from cuberite/FixLilypadPopout (diff)
parentMaked it compileable for clang-3.7 (diff)
downloadcuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.gz
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.bz2
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.lz
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.xz
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.zst
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 6c9e6a781..98005e934 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -95,7 +95,7 @@ cClientHandle::cClientHandle(const AString & a_IPString, int a_ViewDistance) :
m_UniqueID = s_ClientCount;
m_PingStartTime = std::chrono::steady_clock::now();
- LOGD("New ClientHandle created at %p", this);
+ LOGD("New ClientHandle created at %p", static_cast<void *>(this));
}
@@ -106,7 +106,7 @@ cClientHandle::~cClientHandle()
{
ASSERT(m_State == csDestroyed); // Has Destroy() been called?
- LOGD("Deleting client \"%s\" at %p", GetUsername().c_str(), this);
+ LOGD("Deleting client \"%s\" at %p", GetUsername().c_str(), static_cast<void *>(this));
{
cCSLock Lock(m_CSChunkLists);
@@ -140,7 +140,7 @@ cClientHandle::~cClientHandle()
delete m_Protocol;
m_Protocol = nullptr;
- LOGD("ClientHandle at %p deleted", this);
+ LOGD("ClientHandle at %p deleted", static_cast<void *>(this));
}
@@ -164,7 +164,7 @@ void cClientHandle::Destroy(void)
}
// DEBUG:
- LOGD("%s: client %p, \"%s\"", __FUNCTION__, this, m_Username.c_str());
+ LOGD("%s: client %p, \"%s\"", __FUNCTION__, static_cast<void *>(this), m_Username.c_str());
if ((m_Player != nullptr) && (m_Player->GetWorld() != nullptr))
{
@@ -2935,7 +2935,7 @@ void cClientHandle::AddWantedChunk(int a_ChunkX, int a_ChunkZ)
return;
}
- LOGD("Adding chunk [%d, %d] to wanted chunks for client %p", a_ChunkX, a_ChunkZ, this);
+ LOGD("Adding chunk [%d, %d] to wanted chunks for client %p", a_ChunkX, a_ChunkZ, static_cast<void *>(this));
cCSLock Lock(m_CSChunkLists);
if (m_ChunksToSend.find(cChunkCoords(a_ChunkX, a_ChunkZ)) == m_ChunksToSend.end())
{