The big NULL replacement party part 2.
This may take a bit. Trying to do this by operator/command.
This commit is contained in:
+4
-4
@@ -765,7 +765,7 @@ RageDisplay *CreateDisplay()
|
||||
RageException::Throw( ERROR_UNKNOWN_VIDEO_RENDERER.GetValue(), sRenderer.c_str() );
|
||||
}
|
||||
|
||||
if( pRet == NULL )
|
||||
if( pRet == nullptr )
|
||||
continue;
|
||||
|
||||
RString sError = pRet->Init( params, PREFSMAN->m_bAllowUnacceleratedRenderer );
|
||||
@@ -780,7 +780,7 @@ RageDisplay *CreateDisplay()
|
||||
break; // the display is ready to go
|
||||
}
|
||||
|
||||
if( pRet == NULL)
|
||||
if( pRet == nullptr)
|
||||
RageException::Throw( "%s", error.c_str() );
|
||||
|
||||
return pRet;
|
||||
@@ -791,7 +791,7 @@ static void SwitchToLastPlayedGame()
|
||||
const Game *pGame = GAMEMAN->StringToGame( PREFSMAN->GetCurrentGame() );
|
||||
|
||||
// If the active game type isn't actually available, revert to the default.
|
||||
if( pGame == NULL )
|
||||
if( pGame == nullptr )
|
||||
pGame = GAMEMAN->GetDefaultGame();
|
||||
|
||||
if( !GAMEMAN->IsGameEnabled( pGame ) && pGame != GAMEMAN->GetDefaultGame() )
|
||||
@@ -1022,7 +1022,7 @@ int main(int argc, char* argv[])
|
||||
|
||||
// This requires PREFSMAN, for PREFSMAN->m_bShowLoadingWindow.
|
||||
LoadingWindow *pLoadingWindow = LoadingWindow::Create();
|
||||
if(pLoadingWindow == NULL)
|
||||
if(pLoadingWindow == nullptr)
|
||||
RageException::Throw("%s", COULDNT_OPEN_LOADING_WINDOW.GetValue().c_str());
|
||||
|
||||
srand( time(NULL) ); // seed number generator
|
||||
|
||||
Reference in New Issue
Block a user