Skip to content

Code Cleanup #1095

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

Merged
merged 14 commits into from
Jun 12, 2023
Merged

Code Cleanup #1095

merged 14 commits into from
Jun 12, 2023

Conversation

Thomas1664
Copy link
Contributor

This PR adds some cleanups concerning unneeded verbosity and unintentional copies.

I also encountered copies of the containing type inside Optional and Expected if the containing type is const or when returning from const member functions of a const& object. I have to do some additional work to fix this but I want to make you aware of the issue.

{
Path default_base = *ad;
Path default_base = std::move(*ad);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto just remove the variable

@BillyONeal
Copy link
Member

Thanks a bunch!

@BillyONeal BillyONeal merged commit 2359ab2 into microsoft:main Jun 12, 2023
@BillyONeal
Copy link
Member

Thanks!

@Thomas1664 Thomas1664 deleted the cleanup branch June 23, 2023 15:30
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.

4 participants