🎨 modernize-use-nullptr
This commit is contained in:
parent
b31061ff83
commit
bb4e1960e7
77 changed files with 1828 additions and 1828 deletions
|
|
@ -142,7 +142,7 @@ static std::ofstream *CaptureFile(std::string *dst_path)
|
|||
return new std::ofstream(*dst_path, std::ios::binary | std::ios::trunc);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -161,7 +161,7 @@ static void RedPalette()
|
|||
gnScreenWidth,
|
||||
gnScreenHeight,
|
||||
};
|
||||
BltFast(&SrcRect, NULL);
|
||||
BltFast(&SrcRect, nullptr);
|
||||
RenderPresent();
|
||||
}
|
||||
|
||||
|
|
@ -176,7 +176,7 @@ void CaptureScreen()
|
|||
bool success;
|
||||
|
||||
std::ofstream *out_stream = CaptureFile(&FileName);
|
||||
if (out_stream == NULL)
|
||||
if (out_stream == nullptr)
|
||||
return;
|
||||
DrawAndBlit();
|
||||
PaletteGetEntries(256, palette);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue