Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@StephanTLavavej
Copy link
Member

  • Drop break; after return true; in ppltasks.cpp.
    • This was the deadest of dead code. 🧟 🧠
  • In gcd(), fuse break followed by return.
    • There's no other way out of this infinite loop, and no clarity advantage to having the return further away.
  • In fiopen.cpp, change ios_base::openmode atendflag to const bool at_end.
    • We don't modify it, and it's simpler to immediately boil it down to a bool.

There's no other way out of this infinite loop.
…nd`.

We don't modify it, and it's simpler to immediately boil it down to a bool.
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Mar 3, 2023
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner March 3, 2023 20:41
@StephanTLavavej StephanTLavavej self-assigned this Mar 7, 2023
@StephanTLavavej
Copy link
Member Author

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 1e066dc into microsoft:main Mar 7, 2023
@StephanTLavavej StephanTLavavej deleted the stl-cleanups-minor-logic-changes branch March 7, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Something can be improved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants