mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-30 13:27:05 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -71,7 +71,7 @@ void ServerConnection::tick() {
|
||||
// logger.log(Level.WARNING, "Failed to handle packet: "
|
||||
// + e, e);
|
||||
// }
|
||||
if (uc->connection != NULL) uc->connection->flush();
|
||||
if (uc->connection != nullptr) uc->connection->flush();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ void ServerConnection::handleServerSettingsChanged(
|
||||
|
||||
if (packet->action == ServerSettingsChangedPacket::HOST_DIFFICULTY) {
|
||||
for (unsigned int i = 0; i < pMinecraft->levels.length; ++i) {
|
||||
if (pMinecraft->levels[i] != NULL) {
|
||||
if (pMinecraft->levels[i] != nullptr) {
|
||||
app.DebugPrintf(
|
||||
"ClientConnection::handleServerSettingsChanged - "
|
||||
"Difficulty = %d",
|
||||
|
||||
Reference in New Issue
Block a user