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 clean-up for C++20 conformance #357

Merged
merged 130 commits into from
Jul 8, 2023

Conversation

dimitry-ishenko
Copy link
Contributor

@dimitry-ishenko dimitry-ishenko commented Jul 1, 2023

These are the remaining clean-up patches discussed in #338 to enable C++20 standard conformance.

The purpose of these patches is to enable C++20 conformance of the existing code with minimal changes, so that further clean-ups can be done as the next step.

Most of these patches consist of adding const to variables pointing to string literals, and where that's not possible, adding explicit char* casts.

@dimitry-ishenko dimitry-ishenko changed the title Cleanup Code clean-up for C++20 conformance Jul 1, 2023
trim() requires L-value ref as a param.
Mark string literal as const.
Add explicit char* casts.
Disambiguate clamp().
Fix FVECTOR2 expression, which requires L-value.
const LPD3DXCOLOR != const D3DXCOLOR *
Add explicit char* casts.
Mark string literals as const.
"or" is reserved by c++.
Mark string literals as const.
Add explcict char* casts.
Use ptr() to take addr of a temp.
Use range-based for-loops.
Add explicit char* casts.
Use ptr() to take addr of a temp.
@Xyon Xyon merged commit 0530f27 into orbitersim:main Jul 8, 2023
@dimitry-ishenko dimitry-ishenko deleted the cleanup branch July 8, 2023 22:56
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