mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-26 06:49:09 -06:00
Code Cleanup (#2191)
* constexpr const -> constexpr * const char* -> std::string_view
This commit is contained in:
@@ -111,10 +111,9 @@ std::string SpacecraftInstrumentsModule::frameFromBody(const std::string& body)
|
||||
}
|
||||
}
|
||||
|
||||
constexpr const char* unionPrefix = "IAU_";
|
||||
|
||||
constexpr std::string_view unionPrefix = "IAU_";
|
||||
if (body.find(unionPrefix) == std::string::npos) {
|
||||
return unionPrefix + body;
|
||||
return fmt::format("{}{}", unionPrefix, body);
|
||||
}
|
||||
else {
|
||||
return body;
|
||||
|
||||
Reference in New Issue
Block a user