From aa4caae2bf72ca18303fb295a24cd8795044cbcb Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 20 Sep 2025 12:23:23 +0200 Subject: [PATCH] Use proper naming for Nif::RecordPtrT index --- components/nif/recordptr.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/nif/recordptr.hpp b/components/nif/recordptr.hpp index 105b4c7320..a721d1ddb2 100644 --- a/components/nif/recordptr.hpp +++ b/components/nif/recordptr.hpp @@ -18,13 +18,13 @@ namespace Nif { union { - intptr_t index; + intptr_t mIndex; X* mPtr; }; public: RecordPtrT() - : index(-2) + : mIndex(-2) { } @@ -37,21 +37,21 @@ namespace Nif void read(NIFStream* nif) { // Can only read the index once - assert(index == -2); + assert(mIndex == -2); // Store the index for later - index = nif->get(); - assert(index >= -1); + mIndex = nif->get(); + assert(mIndex >= -1); } /// Resolve index to pointer void post(Reader& nif) { - if (index < 0) + if (mIndex < 0) mPtr = nullptr; else { - Record* r = nif.getRecord(index); + Record* r = nif.getRecord(mIndex); // And cast it mPtr = dynamic_cast(r); assert(mPtr != nullptr);