Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
This commit is contained in:
committed by
Martin Natano
parent
f0680a29fc
commit
0cba3579de
@@ -4,7 +4,7 @@
|
||||
void DriverList::Add( const istring &sName, CreateRageDriverFn pfn )
|
||||
{
|
||||
if( m_pRegistrees == nullptr )
|
||||
m_pRegistrees = new map<istring, CreateRageDriverFn>;
|
||||
m_pRegistrees = new std::map<istring, CreateRageDriverFn>;
|
||||
|
||||
ASSERT( m_pRegistrees->find(sName) == m_pRegistrees->end() );
|
||||
(*m_pRegistrees)[sName] = pfn;
|
||||
@@ -15,7 +15,7 @@ RageDriver *DriverList::Create( const RString &sDriverName )
|
||||
if( m_pRegistrees == nullptr )
|
||||
return nullptr;
|
||||
|
||||
map<istring, CreateRageDriverFn>::const_iterator iter = m_pRegistrees->find( istring(sDriverName) );
|
||||
std::map<istring, CreateRageDriverFn>::const_iterator iter = m_pRegistrees->find( istring(sDriverName) );
|
||||
if( iter == m_pRegistrees->end() )
|
||||
return nullptr;
|
||||
return (iter->second)();
|
||||
|
||||
Reference in New Issue
Block a user