From 689bdfc02d36f060c7ea4944104cf77a6fdcc699 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 5 Dec 2021 17:41:58 +0100 Subject: [PATCH] avoid bogus compiler warning about alleged invalid memory access --- src/common/track_statistics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/track_statistics.cpp b/src/common/track_statistics.cpp index b698c0acf..e7c3c0e33 100644 --- a/src/common/track_statistics.cpp +++ b/src/common/track_statistics.cpp @@ -40,7 +40,7 @@ track_statistics_c::create_tags(libmatroska::KaxTags &tags, if (!m_source_id.empty()) { mtx::tags::set_simple(*tag, "SOURCE_ID", m_source_id); - names.emplace_back("SOURCE_ID"); + names.emplace_back("SOURCE_ID"s); } mtx::tags::set_simple(*tag, "_STATISTICS_WRITING_APP", writing_app);