[Cleanup] Use C++11 nullptr instead of NULL#2266
Merged
Fuzzbawls merged 1 commit intoPIVX-Project:masterfrom Mar 6, 2023
Merged
[Cleanup] Use C++11 nullptr instead of NULL#2266Fuzzbawls merged 1 commit intoPIVX-Project:masterfrom
Fuzzbawls merged 1 commit intoPIVX-Project:masterfrom
Conversation
random-zebra
previously approved these changes
Apr 3, 2021
random-zebra
left a comment
There was a problem hiding this comment.
utACK a3346e25bee7f237ba455efc380c0002900e7b53
panleone
previously approved these changes
Mar 4, 2023
panleone
left a comment
There was a problem hiding this comment.
utACK a3346e25bee7f237ba455efc380c0002900e7b53
0f499c3
-BEGIN VERIFY SCRIPT- sed -i 's/\<NULL\>/nullptr/g' src/*.cpp src/*.h src/*/*.cpp src/*/*.h src/qt/*/*.cpp src/qt/*/*.h src/qt/pivx/*/*.cpp src/qt/pivx/*/*.h src/wallet/*/*.cpp src/test/*/*.cpp src/wallet/*/*.h sed -i 's/Prefer nullptr, otherwise SAFECOOKIE./Prefer NULL, otherwise SAFECOOKIE./g' src/torcontrol.cpp sed -i 's/tor: Using nullptr authentication/tor: Using NULL authentication/g' src/torcontrol.cpp sed -i 's/METHODS=nullptr/METHODS=NULL/g' src/test/torcontrol_tests.cpp src/torcontrol.cpp sed -i 's/nullptr certificates/NULL certificates/g' src/qt/paymentserver.cpp sed -i 's/"nullptr"/"NULL"/g' src/torcontrol.cpp src/test/torcontrol_tests.cpp -END VERIFY SCRIPT-
Collaborator
Author
|
rebased on current master branch to resolve conflicts. lets prioritize this one so I don't have to keep rebasing it further. Scripted-diff single commit should be an easy review. |
Liquid369
approved these changes
Mar 5, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scripted diff to replace all
NULLmacros with the C++11nullptrkeyword