The big NULL replacement party part 1.

This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.

And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
This commit is contained in:
Jason Felds
2013-05-03 23:01:54 -04:00
parent b22a3bd3c4
commit 9f24627bf9
167 changed files with 31932 additions and 31932 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ static bool ValidateLocalProfileName( const RString &sAnswer, RString &sErrorOut
}
Profile *pProfile = PROFILEMAN->GetLocalProfile( GAMESTATE->m_sEditLocalProfileID );
if( pProfile != NULL && sAnswer == pProfile->m_sDisplayName )
if( pProfile != nullptr && sAnswer == pProfile->m_sDisplayName )
return true; // unchanged
vector<RString> vsProfileNames;
@@ -111,7 +111,7 @@ void ScreenOptionsManageProfiles::BeginScreen()
for (RString const &s : m_vsLocalProfileID)
{
Profile *pProfile = PROFILEMAN->GetLocalProfile( s );
ASSERT( pProfile != NULL );
ASSERT( pProfile != nullptr );
RString sCommand = ssprintf( "gamecommand;screen,ScreenOptionsEditProfile;profileid,%s;name,dummy", s.c_str() );
OptionRowHandler *pHand = OptionRowHandlerUtil::Make( ParseCommands(sCommand) );
@@ -261,7 +261,7 @@ void ScreenOptionsManageProfiles::HandleScreenMessage( const ScreenMessage SM )
if( !ScreenMiniMenu::s_bCancelled )
{
Profile *pProfile = PROFILEMAN->GetLocalProfile( GAMESTATE->m_sEditLocalProfileID );
ASSERT( pProfile != NULL );
ASSERT( pProfile != nullptr );
switch( ScreenMiniMenu::s_iLastRowCode )
{