and more performance tweaks

This commit is contained in:
DarthArgus
2014-10-27 21:28:46 -07:00
parent 7bcd3cb5bc
commit 7254d00e3c
25 changed files with 82 additions and 82 deletions
@@ -80,7 +80,7 @@ namespace AuctionMarketNamespace
{
HexString += buffer;
}
z++;
++z;
}
DEBUG_REPORT_LOG(ConfigCommodityServer::getShowAllDebugInfo(), ("[Commodities Server ][HEX OOB IN] : %s \n", HexString.c_str()));
@@ -3002,7 +3002,7 @@ void AuctionMarket::DestroyVendorMarket(const DestroyVendorMarketMessage &messag
std::vector<std::map<NetworkId, Auction *>::iterator> destroyedAuctions;
std::map<NetworkId, Auction *>::iterator item;
// get all the auctions for this location and get an iterator from the real auctions map
for( std::map<NetworkId, Auction*>::iterator j = (*i).second->GetAuctions().begin(); j != (*i).second->GetAuctions().end(); j++ )
for( std::map<NetworkId, Auction*>::iterator j = (*i).second->GetAuctions().begin(); j != (*i).second->GetAuctions().end(); ++j )
{
item = m_auctions.find((*j).first);
if( item != m_auctions.end() )
@@ -3012,7 +3012,7 @@ void AuctionMarket::DestroyVendorMarket(const DestroyVendorMarketMessage &messag
}
// do it again for all vendor offers
for( std::map<NetworkId, Auction*>::iterator k = (*i).second->GetVendorOffers().begin(); k != (*i).second->GetVendorOffers().end(); k++ )
for( std::map<NetworkId, Auction*>::iterator k = (*i).second->GetVendorOffers().begin(); k != (*i).second->GetVendorOffers().end(); ++k )
{
item = m_auctions.find((*k).first);
if( item != m_auctions.end() )
@@ -3077,7 +3077,7 @@ void AuctionMarket::DeleteAuctionLocation(const DeleteAuctionLocationMessage &me
std::vector<std::map<NetworkId, Auction *>::iterator> destroyedAuctions;
std::map<NetworkId, Auction *>::iterator item;
// get all the auctions for this location and get an iterator from the real auctions map
for( std::map<NetworkId, Auction*>::iterator j = (*i).second->GetAuctions().begin(); j != (*i).second->GetAuctions().end(); j++ )
for( std::map<NetworkId, Auction*>::iterator j = (*i).second->GetAuctions().begin(); j != (*i).second->GetAuctions().end(); ++j )
{
item = m_auctions.find((*j).first);
if( item != m_auctions.end() )
@@ -3087,7 +3087,7 @@ void AuctionMarket::DeleteAuctionLocation(const DeleteAuctionLocationMessage &me
}
// do it again for all vendor offers
for( std::map<NetworkId, Auction*>::iterator k = (*i).second->GetVendorOffers().begin(); k != (*i).second->GetVendorOffers().end(); k++ )
for( std::map<NetworkId, Auction*>::iterator k = (*i).second->GetVendorOffers().begin(); k != (*i).second->GetVendorOffers().end(); ++k )
{
item = m_auctions.find((*k).first);
if( item != m_auctions.end() )
@@ -3473,7 +3473,7 @@ bool AuctionMarket::FixVendorLocation( const std::string &loc )
}
}
i++;
++i;
}
return false;
@@ -4341,7 +4341,7 @@ void static decodeOOB(const std::string & UTF8String, Unicode::String & UniStrin
UniString.push_back(unicharvalue);
tempstring.clear();
}
c++;
++c;
}
if (tempstring.length() != 0)
{