diff --git a/src/common/chapters/chapters.cpp b/src/common/chapters/chapters.cpp index 2f3e41286..1bf176c77 100644 --- a/src/common/chapters/chapters.cpp +++ b/src/common/chapters/chapters.cpp @@ -166,9 +166,9 @@ parse_simple(mm_text_io_c *in, if (do_convert) cc_utf8 = charset_converter_c::init(charset); - std::string use_language = !language.empty() ? language - : !g_default_language.empty() ? g_default_language - : "eng"; + auto use_language = !language.empty() ? language + : !g_default_language.empty() ? g_default_language + : "eng"; std::regex timestamp_line_re{SIMCHAP_RE_TIMESTAMP_LINE}; std::regex timestamp_re{ SIMCHAP_RE_TIMESTAMP};