summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-09 12:38:04 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-09 12:38:04 +0100
commitb2929c9e6ebaa3edbc6f02720e078a2e356d2146 (patch)
treea6a3b6e5ddb7f2c4636c2d75bb5f5b2390cea3fd /src/Root.cpp
parentTurned off Wunused-parameter (diff)
parentAdded static (diff)
downloadcuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.gz
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.bz2
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.lz
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.xz
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.zst
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.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)