fix compilation with certain compiler versions

This commit is contained in:
Moritz Bunkus 2016-07-03 16:40:24 +02:00
parent 6c3b28ea2d
commit 48ae11327d
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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};