summaryrefslogtreecommitdiff
path: root/src/data.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-07 23:16:45 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-07 23:16:45 +0100
commitba5915461f1622715a69fa25579e5e27e64fb079 (patch)
tree221ce87dfbac455c32459e07beb92b6003243e89 /src/data.cc
parenta4fb6290e31f7e197cc399c745d320442eb093d4 (diff)
SubtitleString -> shared_ptr<Subtitle>
Diffstat (limited to 'src/data.cc')
-rw-r--r--src/data.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/data.cc b/src/data.cc
index 1971a261..9fcf9601 100644
--- a/src/data.cc
+++ b/src/data.cc
@@ -107,3 +107,9 @@ Data::write_via_temp (boost::filesystem::path temp, boost::filesystem::path fina
write (temp);
boost::filesystem::rename (temp, final);
}
+
+bool
+dcp::operator== (Data const & a, Data const & b)
+{
+ return (a.size() == b.size() && memcmp (a.data().get(), b.data().get(), a.size() == 0));
+}