diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-15 13:38:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-15 13:38:14 +0100 |
| commit | 6322c72a13d7be2e991a8e0421414c0af8187b88 (patch) | |
| tree | b4ca07d1f00016bcd407152202ab408b59f093d4 /src/dcp.h | |
| parent | 4709841e68d860c4fbee2f2f824e57489c8ad97d (diff) | |
Use boost::function for making notes during equals operations.
Diffstat (limited to 'src/dcp.h')
| -rw-r--r-- | src/dcp.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -84,7 +84,7 @@ public: std::list<boost::shared_ptr<const Asset> > assets () const; - bool equals (CPL const & other, EqualityOptions options, std::list<std::string>& notes) const; + bool equals (CPL const & other, EqualityOptions options, boost::function<void (std::string)> note) const; void write_xml () const; void write_to_assetmap (std::ostream& s) const; @@ -141,11 +141,10 @@ public: /** Compare this DCP with another, according to various options. * @param other DCP to compare this one to. - * @param options Options to define just what "equality" means. - * @param notes Filled in with notes about differences. + * @param options Options to define what "equality" means. * @return true if the DCPs are equal according to EqualityOptions, otherwise false. */ - bool equals (DCP const & other, EqualityOptions options, std::list<std::string>& notes) const; + bool equals (DCP const & other, EqualityOptions options, boost::function<void (std::string)> note) const; /** Add a CPL to this DCP. * @param cpl CPL to add. |
