From 216166d7a5457815917472daffd7ca18e1c31a3a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 8 Dec 2025 23:53:23 +0100 Subject: Move remove_parameters() out to a static method. --- src/dcp.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/dcp.cc') diff --git a/src/dcp.cc b/src/dcp.cc index c01ecc96..bc85aed5 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -153,6 +153,13 @@ DCP::read_assetmap() const } +string +DCP::remove_parameters(string const& n) +{ + return n.substr(0, n.find(";")); +} + + void DCP::read (vector* notes, bool ignore_incorrect_picture_mxf_type) { @@ -220,10 +227,6 @@ DCP::read (vector* notes, bool ignore_incorrect_picture_m continue; } - auto remove_parameters = [](string const& n) { - return n.substr(0, n.find(";")); - }; - /* Remove any optional parameters (after ;) */ pkl_type = pkl_type->substr(0, pkl_type->find(";")); -- cgit v1.2.3