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

Code optimizations reported by static code analysis (2020-01-14) #37043

Merged
merged 3 commits into from
Jan 17, 2020

Conversation

ZhilkinSerg
Copy link
Contributor

Summary

SUMMARY: Performance "Code optimizations reported by static code analysis"

Purpose of change

Cleanup code while increase performance and fix minor errors.

Describe the solution

See commit messages.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Jan 14, 2020
@ZhilkinSerg
Copy link
Contributor Author

Clang failure is unrelated and will be fixed in #37053

@@ -118,7 +118,7 @@ time_point night_time( const time_point &p )

time_point daylight_time( const time_point &p )
{
// @TODO: Actual dailight should start 18 degrees before sunrise
// TODO: Actual dailight should start 18 degrees before sunrise
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// TODO: Actual dailight should start 18 degrees before sunrise
// TODO: Actual daylight should start 18 degrees before sunrise

@kevingranade kevingranade merged commit 042f5b1 into CleverRaven:master Jan 17, 2020
@ZhilkinSerg ZhilkinSerg deleted the sa-2020-01-14 branch January 17, 2020 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants