diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/cover_sheet.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/cover_sheet.cc b/src/lib/cover_sheet.cc index 43a749682..52296fac7 100644 --- a/src/lib/cover_sheet.cc +++ b/src/lib/cover_sheet.cc @@ -52,8 +52,7 @@ dcpomatic::write_cover_sheet(shared_ptr<const Film> film, boost::filesystem::pat boost::algorithm::replace_all(text, "$TYPE", film->dcp_content_type()->pretty_name()); boost::algorithm::replace_all(text, "$CONTAINER", film->container().container_nickname()); - auto audio_language = film->audio_language(); - if (audio_language) { + if (auto audio_language = film->audio_language()) { boost::algorithm::replace_all(text, "$AUDIO_LANGUAGE", audio_language->description()); } else { boost::algorithm::replace_all(text, "$AUDIO_LANGUAGE", _("None")); |
