turn the functions in the persister that return Snapshot & into functions that return Snapshot * since everything else does that way already

This commit is contained in:
DarthArgus
2016-12-12 22:14:01 +00:00
parent 5ee6a5b9de
commit 2c0ad68634
4 changed files with 44 additions and 39 deletions
@@ -113,9 +113,9 @@ void SwgPersister::getMoneyFromOfflineObject(uint32 replyServer, NetworkId const
SwgSnapshot * snapshot=nullptr;
if (hasDataForObject(sourceObject))
snapshot=safe_cast<SwgSnapshot*>(&getSnapshotForObject(sourceObject, 0));
snapshot=safe_cast<SwgSnapshot*>(getSnapshotForObject(sourceObject, 0));
else
snapshot=safe_cast<SwgSnapshot*>(&getSnapshotForServer(0));
snapshot=safe_cast<SwgSnapshot*>(getSnapshotForServer(0));
snapshot->getMoneyFromOfflineObject(replyServer, sourceObject, amount, replyTo, successCallback, failCallback, packedDictionary);
}
@@ -140,7 +140,7 @@ SwgSnapshot::SwgSnapshot(DB::ModeQuery::Mode mode, bool useGoldDatabase) :
// ----------------------------------------------------------------------
SwgSnapshot::~SwgSnapshot(){
m_bufferList.clear();
}
// ----------------------------------------------------------------------