Skip to content

[GEN][ZH] Rename MemoryPoolObject::deleteInstance to MemoryPoolObject::deleteInstanceInternal#889

Merged
xezon merged 1 commit into
TheSuperHackers:mainfrom
xezon:xezon/refactor-memorypoolobject-deleteinstance
May 21, 2025
Merged

[GEN][ZH] Rename MemoryPoolObject::deleteInstance to MemoryPoolObject::deleteInstanceInternal#889
xezon merged 1 commit into
TheSuperHackers:mainfrom
xezon:xezon/refactor-memorypoolobject-deleteinstance

Conversation

@xezon

@xezon xezon commented May 20, 2025

Copy link
Copy Markdown

This change renames MemoryPoolObject::deleteInstance to MemoryPoolObject::deleteInstanceInternal.

Reason being, when overloading the global deleteInstance, then a call to deleteInstance within a member function of a parent class of MemoryPoolObject will call MemoryPoolObject::deleteInstance instead of ::deleteInstance, which is confusing and error prone.

@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Refactor Edits the code with insignificant behavior changes, is never user facing labels May 20, 2025
@xezon xezon merged commit 95980dc into TheSuperHackers:main May 21, 2025
@xezon xezon deleted the xezon/refactor-memorypoolobject-deleteinstance branch May 21, 2025 14:22
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Minor Severity: Minor < Major < Critical < Blocker Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants