summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-08 17:33:38 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-08 17:33:38 +0100
commit307fad0f257c825c8d433a3e82f2989a8fddd3e0 (patch)
treedf7f820f17893aed860d890b402ca64dd3122b78 /src/Root.cpp
parentActually Fixed ByteBuffer (diff)
downloadcuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar
cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.gz
cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.bz2
cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.lz
cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.xz
cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.zst
cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.zip
Diffstat (limited to 'src/Root.cpp')
-rw-r--r--src/Root.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index 78c94888d..69f18104e 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -593,7 +593,6 @@ bool cRoot::FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallbac
unsigned m_NameLength;
const AString m_PlayerName;
- cPlayerListCallback & m_Callback;
virtual bool Item (cPlayer * a_pPlayer)
{
unsigned int Rating = RateCompareString (m_PlayerName, a_pPlayer->GetName());
@@ -615,18 +614,17 @@ bool cRoot::FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallbac
}
public:
- cCallback (const AString & a_PlayerName, cPlayerListCallback & a_Callback) :
+ cCallback (const AString & a_PlayerName) :
m_BestRating(0),
m_NameLength(a_PlayerName.length()),
m_PlayerName(a_PlayerName),
- m_Callback(a_Callback),
m_BestMatch(NULL),
m_NumMatches(0)
{}
cPlayer * m_BestMatch;
unsigned m_NumMatches;
- } Callback (a_PlayerName, a_Callback);
+ } Callback (a_PlayerName);
ForEachPlayer( Callback );
if (Callback.m_NumMatches == 1)