diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-06-09 21:16:12 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-06-10 23:12:13 +0200 |
| commit | 2f1986a814403d690aedcbe8b7057878ebae76b0 (patch) | |
| tree | 3c9205c192ff4192a2d11c666093a007c4e60c11 /src/lib/string_text_file.cc | |
| parent | 9704833bdfc8c8f104203200be27f714fa677506 (diff) | |
C++11 tidying.
Diffstat (limited to 'src/lib/string_text_file.cc')
| -rw-r--r-- | src/lib/string_text_file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/string_text_file.cc b/src/lib/string_text_file.cc index b8ca27e16..76abe547f 100644 --- a/src/lib/string_text_file.cc +++ b/src/lib/string_text_file.cc @@ -118,7 +118,7 @@ optional<ContentTime> StringTextFile::first () const { if (_subtitles.empty()) { - return optional<ContentTime>(); + return {}; } return ContentTime::from_seconds(_subtitles[0].from.all_as_seconds()); @@ -128,7 +128,7 @@ ContentTime StringTextFile::length () const { if (_subtitles.empty ()) { - return ContentTime (); + return {}; } return ContentTime::from_seconds (_subtitles.back().to.all_as_seconds ()); |
