Skip to content

Conversation

@Caball009
Copy link

Implicit conversion from NULL can be ambiguous; it can be either a pointer or an integer.

It's also potentially less optimal - depending on whether the compiler can optimize this away - because the current constructor needs to check whether the input is a nullptr.

We could do return ""; but that's also potentially less optimal for the same reason.

@Caball009 Caball009 added the Refactor Edits the code with insignificant behavior changes, is never user facing label Dec 1, 2025
@xezon xezon changed the title refactor: Replace implicit conversion from NULL to AsciiString in IPEnumeration::getMachineName refactor(network): Replace implicit conversion from NULL to AsciiString in IPEnumeration::getMachineName Dec 2, 2025
@xezon xezon merged commit 29bf57a into TheSuperHackers:main Dec 2, 2025
24 checks passed
@Caball009 Caball009 deleted the refactor_IPEnumeration_getMachineName branch December 2, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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