diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-20 00:40:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-20 00:40:35 +0100 |
| commit | f614b4526cd06a4d28b46bd2d98a55d56b97b14f (patch) | |
| tree | 1eaf03b5e145a0cb7d8a42a37c1b8e6240c6ac23 /src/language_tag.h | |
| parent | d989a83517fd77aa241c1423ac00cfed62d567fe (diff) | |
Tidy up handling of language metadata for subtitles.
Tried to normalise the idea that subtitle languages are stored as
strings but set as LanguageTags. This may be too defensive; perhaps
SMPTE language metadata is always right, or perhaps even if it isn't
we should throw errors.
Diffstat (limited to 'src/language_tag.h')
| -rw-r--r-- | src/language_tag.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/language_tag.h b/src/language_tag.h index a419914c..a0beaad0 100644 --- a/src/language_tag.h +++ b/src/language_tag.h @@ -171,7 +171,7 @@ public: }; LanguageTag () {} - LanguageTag (std::string tag); + explicit LanguageTag (std::string tag); boost::optional<LanguageSubtag> language() const { return _language; |
