Fix compilation with Clang-21 + libstdc++-16

.emplace() can only be used on constructible objects, while private
nested struct is not considered as constructible due to access control.

Closes #29939

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
This commit is contained in:
Sv. Lockal
2025-10-24 05:00:47 +08:00
committed by John Preston
parent 716fade52a
commit acad1d4175

View File

@@ -1403,7 +1403,7 @@ void WebViewInstance::showGame() {
Expects(v::is<WebViewSourceGame>(_source));
if (!_bot->isFullLoaded()) {
_botFullWaitingArgs.emplace();
_botFullWaitingArgs = ShowArgs{};
return;
}
const auto game = v::get<WebViewSourceGame>(_source);