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

Rename astro namespace to celestia::astro #1943

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

ajtribick
Copy link
Collaborator

  • Tidy up includes in astro.h/astro.cpp
  • Replace snprintf with fmt in astro.cpp

@ajtribick ajtribick force-pushed the astro branch 3 times, most recently from 6756be0 to 1456261 Compare October 18, 2023 19:26
src/celengine/astro.cpp Outdated Show resolved Hide resolved
@ajtribick ajtribick force-pushed the astro branch 3 times, most recently from c80e248 to b69d0a0 Compare October 18, 2023 20:35
src/celengine/astro.cpp Outdated Show resolved Hide resolved
@ajtribick ajtribick force-pushed the astro branch 2 times, most recently from 12703b0 to 62d0828 Compare October 19, 2023 20:26
@ajtribick
Copy link
Collaborator Author

I'm not prepared to mess with the internals of the JD/calendar conversions right now, hence sprinkling //NOSONAR all over it.

@ajtribick ajtribick marked this pull request as ready for review October 19, 2023 22:09
test/unit/kepler_test.cpp Outdated Show resolved Hide resolved
- Tidy up includes in astro.h/astro.cpp
- Replace snprintf with fmt in astro.cpp
- Replace Date::toCStr() with Date::toString() returning std::string
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@ajtribick ajtribick requested a review from 375gnu October 20, 2023 11:34
@ajtribick ajtribick merged commit 22fb030 into CelestiaProject:master Oct 20, 2023
11 checks passed
@ajtribick ajtribick deleted the astro branch October 20, 2023 16:04
snprintf(date, sizeof(date), "%04d-%02d-%02dT%02d:%02d:%08.5fZ",
year, month, day, hour, minute, seconds);
return date;
return fmt::format("{:04}-{:02}-{:02}T{:02}:{:02}:{:02}:{:08.5f}Z"sv,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ajtribick we missed an argument here

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.

3 participants