Skip to content

Commit

Permalink
Fix clang error
Browse files Browse the repository at this point in the history
  • Loading branch information
azrogers committed Dec 2, 2024
1 parent 912184b commit 745b661
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CesiumIonClient/src/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,10 @@ GeocoderResult geocoderResultFromJson(const rapidjson::Document& json) {

for (rapidjson::SizeType i = 0; i < valueJson.Size(); ++i) {
const auto& element = valueJson[i];
result.attributions.emplace_back(
JsonHelpers::getStringOrDefault(element, "html", ""),
!JsonHelpers::getBoolOrDefault(element, "collapsible", false));
std::string html = JsonHelpers::getStringOrDefault(element, "html", "");
bool showOnScreen =
!JsonHelpers::getBoolOrDefault(element, "collapsible", false);
result.attributions.emplace_back(html, showOnScreen);
}
}

Expand Down

0 comments on commit 745b661

Please sign in to comment.