start making more fast code...

This commit is contained in:
DarthArgus
2014-10-27 20:45:42 -07:00
parent e9fea96e88
commit a3d22e877a
4 changed files with 11 additions and 11 deletions
@@ -85,7 +85,7 @@ GenericAPICore::GenericAPICore(const char *game, const char *hosts[],
GenericAPICore::~GenericAPICore()
//----------------------------------------
{
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); conIter++)
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end();++conIter)
{
GenericConnection *con = *conIter;
delete con;
@@ -198,7 +198,7 @@ void GenericAPICore::process()
}
}
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); conIter++)
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end();++conIter)
{
GenericConnection *con = *conIter;
con->process();
@@ -245,7 +245,7 @@ void GenericAPICore::countOpenConnections()
m_currentConnections = 0;
m_maxConnections = m_serverConnections.size();
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); conIter++)
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end();++conIter)
{
GenericConnection *con = *conIter;
if (con->isConnected())