Add a cast from json to std::string for the anchor in the Horizonsdialog(#3548)

This fixes compilation with GCC 14.2.1
This commit is contained in:
Michael Zingale
2025-03-03 03:59:57 -05:00
committed by GitHub
parent cc395ce340
commit 12de9d8697
2 changed files with 2 additions and 2 deletions
@@ -858,7 +858,7 @@ openspace::HorizonsFile HorizonsDialog::handleAnswer(nlohmann::json& answer) {
auto it = answer.find("error");
if (it != answer.end()) {
_latestHorizonsError = *it;
_latestHorizonsError = it->get<std::string>();
}
HorizonsResultCode isValid = isValidHorizonsAnswer(answer);
+1 -1
View File
@@ -114,7 +114,7 @@ NavigationState::NavigationState(const nlohmann::json& json) {
position.y = json["position"]["y"].get<double>();
position.z = json["position"]["z"].get<double>();
anchor = json["anchor"];
anchor = json["anchor"].get<std::string>();
if (auto it = json.find("referenceframe"); it != json.end()) {
referenceFrame = it->get<std::string>();