mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-05 06:16:47 -04:00
Minor fixes including removing <> from make_pair usage and using explicit conversions where required by the explicit constructor flags
Now builds/runs using c++11
This commit is contained in:
@@ -180,7 +180,7 @@ void Squad::addUnit(NetworkId const & unit)
|
||||
|
||||
//-- Add the unit to the new squad
|
||||
|
||||
IGNORE_RETURN(m_unitMap->insert(std::make_pair(unit, &PersistentCrcString::empty)));
|
||||
IGNORE_RETURN(m_unitMap->insert(std::make_pair(CachedNetworkId(unit), &PersistentCrcString::empty)));
|
||||
|
||||
if (leader)
|
||||
{
|
||||
@@ -419,7 +419,7 @@ void Squad::buildFormation()
|
||||
NetworkId const & unit = iterSortedUnitList->second.first;
|
||||
PersistentCrcString const * unitName = iterSortedUnitList->second.second;
|
||||
|
||||
IGNORE_RETURN(m_unitMap->insert(std::make_pair(unit, unitName)));
|
||||
IGNORE_RETURN(m_unitMap->insert(std::make_pair(CachedNetworkId(unit), unitName)));
|
||||
}
|
||||
|
||||
m_formation.build(*this);
|
||||
|
||||
Reference in New Issue
Block a user