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
+5 -5
View File
@@ -101,7 +101,7 @@ void RageInput::WindowReset()
void RageInput::AddHandler( InputHandler *pHandler )
{
ASSERT( pHandler != NULL );
ASSERT( pHandler != nullptr );
LoadedInputHandler hand;
hand.m_pDevice = pHandler;
@@ -125,7 +125,7 @@ InputHandler *RageInput::GetHandlerForDevice( const InputDevice id )
RString RageInput::GetDeviceSpecificInputString( const DeviceInput &di )
{
InputHandler *pDriver = GetHandlerForDevice( di.device );
if( pDriver != NULL )
if( pDriver != nullptr )
return pDriver->GetDeviceSpecificInputString(di);
else
return di.ToString();
@@ -134,7 +134,7 @@ RString RageInput::GetDeviceSpecificInputString( const DeviceInput &di )
RString RageInput::GetLocalizedInputString( const DeviceInput &di )
{
InputHandler *pDriver = GetHandlerForDevice( di.device );
if( pDriver != NULL )
if( pDriver != nullptr )
return pDriver->GetLocalizedInputString(di);
else
return Capitalize( DeviceButtonToString(di.button) );
@@ -143,7 +143,7 @@ RString RageInput::GetLocalizedInputString( const DeviceInput &di )
wchar_t RageInput::DeviceInputToChar( DeviceInput di, bool bUseCurrentKeyModifiers )
{
InputHandler *pDriver = GetHandlerForDevice( di.device );
if( pDriver != NULL )
if( pDriver != nullptr )
return pDriver->DeviceButtonToChar(di.button, bUseCurrentKeyModifiers);
else
return '\0';
@@ -152,7 +152,7 @@ wchar_t RageInput::DeviceInputToChar( DeviceInput di, bool bUseCurrentKeyModifie
InputDeviceState RageInput::GetInputDeviceState( InputDevice id )
{
InputHandler *pDriver = GetHandlerForDevice( id );
if( pDriver != NULL )
if( pDriver != nullptr )
return pDriver->GetInputDeviceState(id);
else
return InputDeviceState_NoInputHandler;