-
Notifications
You must be signed in to change notification settings - Fork 37.7k
[refactor] Remove using namespace <xxx> from wallet/ & util* #9643
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
[refactor] Remove using namespace <xxx> from wallet/ & util* #9643
Conversation
src/util.cpp
Outdated
@@ -97,15 +97,15 @@ namespace boost { | |||
|
|||
} // namespace boost | |||
|
|||
using namespace std; | |||
// blank space for binary match |
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.
?
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.
The binary check tool trips over the LOCK macros. If a line is removed, the binary check ends up failing.
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.
In hindsight I realize that comment is very unhelpful. I removed it.
854e962
to
df8b249
Compare
@@ -97,15 +97,15 @@ namespace boost { | |||
|
|||
} // namespace boost | |||
|
|||
using namespace std; | |||
|
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.
Bike-shedding: you could just remove the line.
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.
Because of macros which use the line number, removing this line breaks the same-binaries-check, unfortunately.
utACK df8b249 |
df8b249
to
bc74809
Compare
Rebased & redid same-binaries check. |
Needs another rebase, sorry. |
bc74809
to
a57845c
Compare
…til* a57845c Refactor: Remove using namespace <xxx> from util* (Karl-Johan Alm) 8a52281 Refactor: Remove using namespace <xxx> from wallet/ (Karl-Johan Alm) Tree-SHA512: cd06b569fee0ce25db753ade5ee694b582733a8883bfd62a27613020266d2a902af079ef23b58a5412f7af4afd7681e689af3c7780e5ea00c77b16d144d72db5
…et/ & util* a57845c Refactor: Remove using namespace <xxx> from util* (Karl-Johan Alm) 8a52281 Refactor: Remove using namespace <xxx> from wallet/ (Karl-Johan Alm) Tree-SHA512: cd06b569fee0ce25db753ade5ee694b582733a8883bfd62a27613020266d2a902af079ef23b58a5412f7af4afd7681e689af3c7780e5ea00c77b16d144d72db5
…et/ & util* a57845c Refactor: Remove using namespace <xxx> from util* (Karl-Johan Alm) 8a52281 Refactor: Remove using namespace <xxx> from wallet/ (Karl-Johan Alm) Tree-SHA512: cd06b569fee0ce25db753ade5ee694b582733a8883bfd62a27613020266d2a902af079ef23b58a5412f7af4afd7681e689af3c7780e5ea00c77b16d144d72db5
…et/ & util* a57845c Refactor: Remove using namespace <xxx> from util* (Karl-Johan Alm) 8a52281 Refactor: Remove using namespace <xxx> from wallet/ (Karl-Johan Alm) Tree-SHA512: cd06b569fee0ce25db753ade5ee694b582733a8883bfd62a27613020266d2a902af079ef23b58a5412f7af4afd7681e689af3c7780e5ea00c77b16d144d72db5
…et/ & util* a57845c Refactor: Remove using namespace <xxx> from util* (Karl-Johan Alm) 8a52281 Refactor: Remove using namespace <xxx> from wallet/ (Karl-Johan Alm) Tree-SHA512: cd06b569fee0ce25db753ade5ee694b582733a8883bfd62a27613020266d2a902af079ef23b58a5412f7af4afd7681e689af3c7780e5ea00c77b16d144d72db5
…et/ & util* a57845c Refactor: Remove using namespace <xxx> from util* (Karl-Johan Alm) 8a52281 Refactor: Remove using namespace <xxx> from wallet/ (Karl-Johan Alm) Tree-SHA512: cd06b569fee0ce25db753ade5ee694b582733a8883bfd62a27613020266d2a902af079ef23b58a5412f7af4afd7681e689af3c7780e5ea00c77b16d144d72db5
This is a sub-set of #9235, including only the
wallet
dir andutil*
files.Same-binaries check (2017-03-08):
The affected files and namespaces: