From 8dabe7c3d815ff95c2fb3edc3cfce62434711fc4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 5 May 2020 22:27:54 +0200 Subject: [PATCH 1/1] const correctness. --- src/lib/kdm_with_metadata.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/kdm_with_metadata.h b/src/lib/kdm_with_metadata.h index 7309ee2d6..6b9ff23c7 100644 --- a/src/lib/kdm_with_metadata.h +++ b/src/lib/kdm_with_metadata.h @@ -33,7 +33,7 @@ class Cinema; class KDMWithMetadata { public: - KDMWithMetadata (dcp::NameFormat::Map const& name_values, boost::shared_ptr cinema) + KDMWithMetadata (dcp::NameFormat::Map const& name_values, boost::shared_ptr cinema) : _name_values (name_values) , _cinema (cinema) {} @@ -49,13 +49,13 @@ public: boost::optional get (char k) const; - boost::shared_ptr cinema () const { + boost::shared_ptr cinema () const { return _cinema; } private: dcp::NameFormat::Map _name_values; - boost::shared_ptr _cinema; + boost::shared_ptr _cinema; }; @@ -104,7 +104,7 @@ template class SpecialKDMWithMetadata : public KDMWithMetadata { public: - SpecialKDMWithMetadata (dcp::NameFormat::Map const& name_values, boost::shared_ptr cinema, T k) + SpecialKDMWithMetadata (dcp::NameFormat::Map const& name_values, boost::shared_ptr cinema, T k) : KDMWithMetadata (name_values, cinema) , kdm (k) {} -- 2.30.2