mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-08 19:21:44 +00:00
fix compilation with certain compiler versions
This commit is contained in:
parent
6c3b28ea2d
commit
48ae11327d
@ -1155,7 +1155,7 @@ fix_chapter_country_codes(EbmlMaster &chapters) {
|
||||
if (!ccountry)
|
||||
continue;
|
||||
|
||||
auto mapped_cctld = map_to_cctld(std::string{*ccountry});
|
||||
auto mapped_cctld = map_to_cctld(ccountry->GetValue());
|
||||
if (mapped_cctld)
|
||||
ccountry->SetValue(*mapped_cctld);
|
||||
}
|
||||
|
@ -151,8 +151,8 @@ ebml_chapters_converter_c::fix_display(KaxChapterDisplay &display)
|
||||
if (!ccountry)
|
||||
return;
|
||||
|
||||
auto country = std::string{*ccountry};
|
||||
auto cctld = map_to_cctld(country);
|
||||
auto country = ccountry->GetValue();
|
||||
auto cctld = map_to_cctld(country);
|
||||
if (!cctld)
|
||||
throw conversion_x{boost::format(Y("'%1%' is not a valid ccTLD country code.")) % country};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user