Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b32fc7f

Browse files
authored
Fix for downstream C++20 compiler (#39197)
1 parent 6fe9861 commit b32fc7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

shell/platform/glfw/flutter_glfw.cc

+5-5
Original file line numberDiff line numberDiff line change
@@ -673,12 +673,12 @@ UniqueAotDataPtr LoadAotData(const std::filesystem::path& aot_data_path) {
673673
<< std::endl;
674674
return nullptr;
675675
}
676+
std::string path_string = aot_data_path.string();
676677
if (!std::filesystem::exists(aot_data_path)) {
677-
std::cerr << "Can't load AOT data from " << aot_data_path.string()
678-
<< "; no such file." << std::endl;
678+
std::cerr << "Can't load AOT data from " << path_string << "; no such file."
679+
<< std::endl;
679680
return nullptr;
680681
}
681-
std::string path_string = aot_data_path.u8string();
682682
FlutterEngineAOTDataSource source = {};
683683
source.type = kFlutterEngineAOTDataSourceTypeElfPath;
684684
source.elf_path = path_string.c_str();
@@ -757,8 +757,8 @@ static bool RunFlutterEngine(
757757
}
758758
FlutterProjectArgs args = {};
759759
args.struct_size = sizeof(FlutterProjectArgs);
760-
args.assets_path = assets_path.c_str();
761-
args.icu_data_path = icu_path.c_str();
760+
args.assets_path = assets_path.string().c_str();
761+
args.icu_data_path = icu_path.string().c_str();
762762
args.command_line_argc = static_cast<int>(argv.size());
763763
args.command_line_argv = &argv[0];
764764
args.platform_message_callback = EngineOnFlutterPlatformMessage;

0 commit comments

Comments
 (0)