MORTEVIELLE: Use nullptr

Using clang-tidy modernize-use-nullptr
This commit is contained in:
Orgad Shaneh 2021-11-13 23:40:33 +02:00 committed by Filippos Karapetis
parent e808737662
commit bbbcd1c899
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@
static const PlainGameDescriptor MortevielleGame[] = {
{"mortevielle", "Mortville Manor"},
{0, 0}
{nullptr, nullptr}
};
static const DebugChannelDef debugFlagList[] = {

View File

@ -125,7 +125,7 @@ void GfxSurface::decode(const byte *pSrc) {
byte *pDest = &outputBuffer[0];
const byte *pSrcStart = pSrc;
const byte *pLookup = NULL;
const byte *pLookup = nullptr;
byte *lookupTable = (byte *)malloc(sizeof(byte) * BUFFER_SIZE);
byte *srcBuffer = (byte *)malloc(sizeof(byte) * BUFFER_SIZE);

View File

@ -77,7 +77,7 @@ bool SavegameManager::loadSavegame(const Common::String &filename) {
Common::SeekableReadStream *stream = g_system->getSavefileManager()->openForLoading(filename);
Common::File f;
if (stream == NULL) {
if (stream == nullptr) {
if (!f.open(filename)) {
warning("Unable to open save file '%s'", filename.c_str());
return false;
@ -101,7 +101,7 @@ bool SavegameManager::loadSavegame(const Common::String &filename) {
}
// Read the game contents
Common::Serializer sz(stream, NULL);
Common::Serializer sz(stream, nullptr);
sync_save(sz);
g_vm->_coreVar = g_vm->_saveStruct;
@ -158,7 +158,7 @@ Common::Error SavegameManager::saveGame(int n, const Common::String &saveName) {
writeSavegameHeader(f, saveName);
// Write out the savegame contents
Common::Serializer sz(NULL, f);
Common::Serializer sz(nullptr, f);
sync_save(sz);
// Close the save file