mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
MORTEVIELLE: Use nullptr
Using clang-tidy modernize-use-nullptr
This commit is contained in:
parent
e808737662
commit
bbbcd1c899
@ -28,7 +28,7 @@
|
||||
|
||||
static const PlainGameDescriptor MortevielleGame[] = {
|
||||
{"mortevielle", "Mortville Manor"},
|
||||
{0, 0}
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
||||
static const DebugChannelDef debugFlagList[] = {
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user