Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upsrc: don't store one-use strings in variable #21876
Conversation
This comment has been minimized.
This comment has been minimized.
devsnek
approved these changes
Jul 19, 2018
addaleax
approved these changes
Jul 19, 2018
addaleax
added
C++
lib / src
labels
Jul 19, 2018
This comment has been minimized.
This comment has been minimized.
|
@maclover7 I’d also label this with |
trivikr
approved these changes
Jul 19, 2018
JungMinu
approved these changes
Jul 19, 2018
jasnell
approved these changes
Jul 19, 2018
maclover7
force-pushed the
maclover7:jm-mv-str
branch
from
6d09116
to
801ee85
Jul 19, 2018
maclover7
changed the title
dns: don't store one-use strings in variable
src: don't store one-use strings in variable
Jul 19, 2018
This comment has been minimized.
This comment has been minimized.
TimothyGu
approved these changes
Jul 19, 2018
cjihrig
approved these changes
Jul 19, 2018
maclover7
added
the
author ready
label
Jul 20, 2018
This comment has been minimized.
This comment has been minimized.
|
Landed in de8a8d0 |
maclover7
closed this
Jul 22, 2018
maclover7
deleted the
maclover7:jm-mv-str
branch
Jul 22, 2018
maclover7
added a commit
that referenced
this pull request
Jul 22, 2018
maclover7
restored the
maclover7:jm-mv-str
branch
Jul 22, 2018
maclover7
reopened this
Jul 22, 2018
maclover7
closed this
Jul 22, 2018
maclover7
deleted the
maclover7:jm-mv-str
branch
Jul 22, 2018
targos
added a commit
that referenced
this pull request
Jul 24, 2018
This was referenced Aug 1, 2018
This was referenced Aug 2, 2018
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.
maclover7 commentedJul 19, 2018
Move strings that are used only once to their call-sites, don't store
in a variable. What most other places in
src/cares_wrap.ccdo, as well as other files insrc.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes