mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Change NULL to nullptr
This commit is contained in:
@ -42,7 +42,7 @@ CPerfObjectList::GetFirstPerfObject( void )
|
||||
CPerfObject *
|
||||
CPerfObjectList::GetNextPerfObject( void )
|
||||
{
|
||||
// Are we at the last object in the list? Return NULL if so.
|
||||
// Are we at the last object in the list? Return nullptr if so.
|
||||
if ( ++m_currentObjectListIndex >= m_pPerfSnapshot->GetNumObjectTypes() )
|
||||
return 0;
|
||||
|
||||
|
@ -149,7 +149,7 @@ ULONGLONG GetPerfData(LPCWSTR objectName, LPCWSTR instanceName, LPCWSTR counterN
|
||||
if (pPerfObj)
|
||||
{
|
||||
for (CPerfObjectInstance* pObjInst = pPerfObj->GetFirstObjectInstance();
|
||||
pObjInst != NULL;
|
||||
pObjInst != nullptr;
|
||||
pObjInst = pPerfObj->GetNextObjectInstance())
|
||||
{
|
||||
if (*instanceName)
|
||||
@ -170,9 +170,9 @@ ULONGLONG GetPerfData(LPCWSTR objectName, LPCWSTR instanceName, LPCWSTR counterN
|
||||
}
|
||||
|
||||
CPerfCounter* pPerfCntr = pObjInst->GetCounterByName(counterName);
|
||||
if (pPerfCntr != NULL)
|
||||
if (pPerfCntr != nullptr)
|
||||
{
|
||||
pPerfCntr->GetData(data, 256, NULL);
|
||||
pPerfCntr->GetData(data, 256, nullptr);
|
||||
|
||||
if (pPerfCntr->GetSize() == 1)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "perfsnap.h"
|
||||
#include "makeptr.h"
|
||||
|
||||
PBYTE CPerfSnapshot::c_pBuffer = NULL;
|
||||
PBYTE CPerfSnapshot::c_pBuffer = nullptr;
|
||||
DWORD CPerfSnapshot::c_cbBufferSize = 0;
|
||||
|
||||
CPerfSnapshot::CPerfSnapshot(
|
||||
|
@ -96,7 +96,7 @@ CPerfTitleDatabase::CPerfTitleDatabase(
|
||||
// The raw data entries are an ASCII string index (e.g., "242"), followed
|
||||
// by the corresponding string. Fill in the appropriate slot in the
|
||||
// m_TitleStrings array with the pointer to the string name. The end
|
||||
// of the list is indicated by a double NULL.
|
||||
// of the list is indicated by a double nullptr.
|
||||
|
||||
PTSTR pszWorkStr = (PTSTR)m_pszRawStrings;
|
||||
unsigned cbCurrStr;
|
||||
|
Reference in New Issue
Block a user