mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-08 23:07:36 +00:00
# housekeeping
replaced all (*) CStr / CStrW by-value params with const reference. hoo boy. please always perform this optimization (actually standard idiom) when writing the code - it takes little work, tells the next guy that the string won't be modified, and makes a large performance difference. (* where possible.. a few require other changes and will follow later) This was SVN commit r4151.
This commit is contained in:
@@ -35,7 +35,7 @@ int CFormationCollection::loadTemplates()
|
||||
return 0;
|
||||
}
|
||||
|
||||
CFormation* CFormationCollection::getTemplate( CStrW name )
|
||||
CFormation* CFormationCollection::getTemplate( const CStrW& name )
|
||||
{
|
||||
// Check whether this template has already been loaded
|
||||
templateMap::iterator it = m_templates.find( name );
|
||||
|
||||
Reference in New Issue
Block a user