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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user