mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-13 13:08:08 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -155,8 +155,8 @@ void Options::init() {
|
||||
keyMappings[12] = keyPickItem;
|
||||
keyMappings[13] = keyToggleFog;
|
||||
|
||||
minecraft = NULL;
|
||||
// optionsFile = NULL;
|
||||
minecraft = nullptr;
|
||||
// optionsFile = nullptr;
|
||||
|
||||
difficulty = 2;
|
||||
hideGui = false;
|
||||
@@ -370,7 +370,7 @@ void Options::load() {
|
||||
|
||||
std::wstring line = L"";
|
||||
while ((line = br->readLine()) !=
|
||||
L"") // 4J - was check against NULL - do we need to distinguish
|
||||
L"") // 4J - was check against nullptr - do we need to distinguish
|
||||
// between empty lines and a fail here?
|
||||
{
|
||||
// 4J - removed try/catch
|
||||
|
||||
Reference in New Issue
Block a user