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

Clean-up patches #341

Merged
merged 5 commits into from
May 31, 2023
Merged

Clean-up patches #341

merged 5 commits into from
May 31, 2023

Conversation

dimitry-ishenko
Copy link
Contributor

@dimitry-ishenko dimitry-ishenko commented May 26, 2023

This is a first batch of 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-up can be done as the next step.

The patches were purposely made very small and easy to review/accept, and will also aid any further bisects if necessary to find bugs.

Mark string literals and functions using them as const.
Remove useless char* pointers pointing to global char[N] arrays, since
std::cin can't operate on char*.
@Xyon Xyon merged commit 0f27bc3 into orbitersim:main May 31, 2023
@CaptainSwag101
Copy link
Contributor

The change to the Date2Int() function parameters seems to have caused certain celestial bodies to throw errors while loading into a simulation. In no particular order, the offenders are Phobos, Deimos, Miranda, Ariel, Umbriel, Titania, and Oberon. They complain about a "procedure entry point not found" for the function Date2Int, which did not happen prior to this PR.

@n7275
Copy link
Contributor

n7275 commented Jun 5, 2023

This bug would've been discovered by opening the simulation once. Please make sure that we aren't introducing bugs.

The issue here is that those moon modules can't be rebuilt (because we don't have the source). They will need to be replaced.

The change is good, but we can't be breaking the Orbiter in the process. I am very happy to be a reviewer on these if you want.

@dimitry-ishenko
Copy link
Contributor Author

Sorry guys, that's my bad. I've reverted it on my end but forgot to push before submitting the PR. Will fix shortly.

@dimitry-ishenko
Copy link
Contributor Author

I've submitted PR #345 with the fix.

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