diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-20 16:53:14 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-20 16:53:14 +0100 |
commit | df1113151aff47bfd1b401bf8d06a3fe8f6b9115 (patch) | |
tree | e14449dad963d0b441edebf2cf74713d5b9dd665 /src/keeper.cpp | |
parent | 6556cc558f0602cc99b1a8d1c7212b2e91490cdc (diff) | |
download | lanes-df1113151aff47bfd1b401bf8d06a3fe8f6b9115.tar.gz lanes-df1113151aff47bfd1b401bf8d06a3fe8f6b9115.tar.bz2 lanes-df1113151aff47bfd1b401bf8d06a3fe8f6b9115.zip |
C++ migration: more NULL → nullptr
Diffstat (limited to 'src/keeper.cpp')
-rw-r--r-- | src/keeper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keeper.cpp b/src/keeper.cpp index 697fe71..17f5df2 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
@@ -412,7 +412,7 @@ int keepercall_set( lua_State* L) | |||
412 | lua_rawget( L, 1); // fifos key fifo|nil | 412 | lua_rawget( L, 1); // fifos key fifo|nil |
413 | // empty the fifo for the specified key: replace uservalue with a virgin table, reset counters, but leave limit unchanged! | 413 | // empty the fifo for the specified key: replace uservalue with a virgin table, reset counters, but leave limit unchanged! |
414 | fifo = (keeper_fifo*) lua_touserdata( L, -1); | 414 | fifo = (keeper_fifo*) lua_touserdata( L, -1); |
415 | if( fifo != nullptr) // might be NULL if we set a nonexistent key to nil | 415 | if( fifo != nullptr) // might be nullptr if we set a nonexistent key to nil |
416 | { // fifos key fifo | 416 | { // fifos key fifo |
417 | if( fifo->limit < 0) // fifo limit value is the default (unlimited): we can totally remove it | 417 | if( fifo->limit < 0) // fifo limit value is the default (unlimited): we can totally remove it |
418 | { | 418 | { |
@@ -621,7 +621,7 @@ void close_keepers( Universe* U) | |||
621 | /* | 621 | /* |
622 | * Initialize keeper states | 622 | * Initialize keeper states |
623 | * | 623 | * |
624 | * If there is a problem, returns NULL and pushes the error message on the stack | 624 | * If there is a problem, returns nullptr and pushes the error message on the stack |
625 | * else returns the keepers bookkeeping structure. | 625 | * else returns the keepers bookkeeping structure. |
626 | * | 626 | * |
627 | * Note: Any problems would be design flaws; the created Lua state is left | 627 | * Note: Any problems would be design flaws; the created Lua state is left |