Skip to content

Fix the Linux server build: JSON object loops over TSharedString keys - #311

Merged
GhzGarage merged 1 commit into
mainfrom
claude/linux-json-keys
Dec 3, 2026
Merged

GhzGarage merged 1 commit into
mainfrom
claude/linux-json-keys

Conversation

@GhzGarage

@GhzGarage GhzGarage commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Release blocker: the #476 release (run 47062063036 in mantle) failed on the Linux server build.

Unreal 5.8 keys FJsonObject::Values by UE::TSharedString, so a range-for spelled const TPair<FString, TSharedPtr<FJsonValue>>& binds to a temporary, and clang rejects it (-Werror,-Wrange-loop-construct). MSVC lets it through.

  • MantleCustomAvatar.cpp, MantleNPCClipSets.cpp, SMantleCustomAvatarSection.cpp: the loops use const auto&; the one body that needed an FString key converts it.
  • The two runtime files are copies and stay identical to their mantle homes.
  • A search of both repos found no other loop of this kind over a JSON object's values.

Not compiled locally (type-only change). The Linux build is only proven by the release re-run.

Mantle-PR: mantleplatform/mantle#478

🤖 Generated with Claude Code

…dString keys)

5.8 keys FJsonObject::Values by UE::TSharedString, so a spelled-out FString pair type binds to a temporary,
which clang rejects (-Werror,-Wrange-loop-construct). Same cause as mantleplatform/mantle#469.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@GhzGarage
GhzGarage merged commit 702701a into main Dec 3, 2026
1 of 2 checks passed
@GhzGarage
GhzGarage deleted the claude/linux-json-keys branch December 3, 2026 12:31
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.

1 participant