-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Use nullptr in C++ code (solves #4348) #5043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
4bcec6d to
eff345b
Compare
b3c3ec3 to
47242d9
Compare
47242d9 to
9331509
Compare
|
@aleks-f : I hope that I converted all of the instances in the code where 0 or NULL is used instead of nullptr. Changes revealed some latent problems in the code that might be worth resolving at some point. |
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hidden variables are harmless and easily fixable - just remove auto* from the second instance, at least that's what it looks like to me - declared and initialized with nullptr, then declared again, so it only hides the unused nullptr one
key length I vaguely remember was complained about long time ago, but changing it would break code. I guess one day we'll have to do it
f6c8958 to
4dc1365
Compare
Closes #4348