mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
ADL: Use nullptr
Using clang-tidy modernize-use-nullptr
This commit is contained in:
parent
c97917c8f5
commit
b125faf954
@ -199,7 +199,7 @@ bool Console::Cmd_Region(int argc, const char **argv) {
|
||||
}
|
||||
|
||||
uint regionCount = _engine->_state.regions.size();
|
||||
uint region = strtoul(argv[1], NULL, 0);
|
||||
uint region = strtoul(argv[1], nullptr, 0);
|
||||
if (region < 1 || region > regionCount) {
|
||||
debugPrintf("Region %u out of valid range [1, %u]\n", region, regionCount);
|
||||
return true;
|
||||
@ -227,7 +227,7 @@ bool Console::Cmd_Room(int argc, const char **argv) {
|
||||
}
|
||||
|
||||
uint roomCount = _engine->_state.rooms.size();
|
||||
uint room = strtoul(argv[1], NULL, 0);
|
||||
uint room = strtoul(argv[1], nullptr, 0);
|
||||
if (room < 1 || room > roomCount) {
|
||||
debugPrintf("Room %u out of valid range [1, %u]\n", room, roomCount);
|
||||
return true;
|
||||
@ -335,7 +335,7 @@ bool Console::Cmd_Var(int argc, const char **argv) {
|
||||
}
|
||||
|
||||
uint varCount = _engine->_state.vars.size();
|
||||
uint var = strtoul(argv[1], NULL, 0);
|
||||
uint var = strtoul(argv[1], nullptr, 0);
|
||||
|
||||
if (var >= varCount) {
|
||||
debugPrintf("Variable %u out of valid range [0, %u]\n", var, varCount - 1);
|
||||
@ -343,7 +343,7 @@ bool Console::Cmd_Var(int argc, const char **argv) {
|
||||
}
|
||||
|
||||
if (argc == 3) {
|
||||
uint value = strtoul(argv[2], NULL, 0);
|
||||
uint value = strtoul(argv[2], nullptr, 0);
|
||||
_engine->_state.vars[var] = value;
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ static const PlainGameDescriptor adlGames[] = {
|
||||
{ "hires4", "Hi-Res Adventure #4: Ulysses and the Golden Fleece" },
|
||||
{ "hires5", "Hi-Res Adventure #5: Time Zone" },
|
||||
{ "hires6", "Hi-Res Adventure #6: The Dark Crystal" },
|
||||
{ 0, 0 }
|
||||
{ nullptr, nullptr }
|
||||
};
|
||||
|
||||
static const AdlGameDescription gameFileDescriptions[] = {
|
||||
@ -514,7 +514,7 @@ ADDetectedGames AdlMetaEngineDetection::detectGame(const Common::FSNode &parent,
|
||||
|
||||
FilePropertiesMap filesProps;
|
||||
|
||||
for (uint g = 0; gameDiskDescriptions[g].desc.gameId != 0; ++g) {
|
||||
for (uint g = 0; gameDiskDescriptions[g].desc.gameId != nullptr; ++g) {
|
||||
ADDetectedGame game(&gameDiskDescriptions[g].desc);
|
||||
|
||||
// Skip games that don't meet the language/platform/extra criteria
|
||||
|
Loading…
x
Reference in New Issue
Block a user