Skip to content
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

multi: No string pointer on submit work. #365

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Sep 14, 2023

This modifies the SubmitWork function to take the submission directly instead of a pointer to it.

Strings are already reference types, so there is no reason to take a pointer to a string unless the calee intended to change what the caller's string points at. Moreover, taking a pointer could also lead to unnecessary allocations.

This modifies the SubmitWork function to take the submission directly
instead of a pointer to it.

Strings are already reference types, so there is no reason to take a
pointer to a string unless the calee intended to change what the
caller's string points at. Moreover, taking a pointer could also lead to
unnecessary allocations.
@jholdstock jholdstock merged commit d1317d9 into decred:master Sep 14, 2023
2 checks passed
@davecgh davecgh deleted the multi_not_string_pointer branch September 14, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants