The big NULL replacement party part 5.

Right. ' = NULL' would get a lot of these.
This commit is contained in:
Jason Felds
2013-05-03 23:39:52 -04:00
parent 328c41eec0
commit 28e5148dec
233 changed files with 7448 additions and 7447 deletions
+5 -5
View File
@@ -2,7 +2,7 @@
#include "HIDDevice.h"
#include "RageUtil.h"
HIDDevice::HIDDevice() : m_Interface( NULL ), m_Queue( NULL ), m_bRunning( false )
HIDDevice::HIDDevice() : m_Interface(nullptr), m_Queue(nullptr), m_bRunning( false )
{
}
@@ -108,7 +108,7 @@ bool HIDDevice::Open( io_object_t device )
if( hresult != S_OK )
{
LOG->Warn( "Couldn't get device interface from plugin interface." );
m_Interface = NULL;
m_Interface = nullptr;
return false;
}
@@ -117,7 +117,7 @@ bool HIDDevice::Open( io_object_t device )
{
PrintIOErr( ret, "Failed to open the interface." );
CALL( m_Interface, Release );
m_Interface = NULL;
m_Interface = nullptr;
return false;
}
@@ -133,9 +133,9 @@ bool HIDDevice::Open( io_object_t device )
{
PrintIOErr( ret, "Failed to create the queue." );
CALL( m_Queue, Release );
m_Queue = NULL;
m_Queue = nullptr;
CALL( m_Interface, Release );
m_Interface = NULL;
m_Interface = nullptr;
return false;
}