X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fcpl.cc;h=0abf864af35570b18058c3ab43c2acc8eef22c4a;hb=b80f65a2f7cf3e8a02fe0ad8bebb19640f63b5d2;hp=38f22d9428a7ade0bff46f0cd41ebb17258ace8f;hpb=a641fdc912a3f0749015decdf9e23ff15186ef78;p=libdcp.git diff --git a/src/cpl.cc b/src/cpl.cc index 38f22d94..0abf864a 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -15,6 +15,20 @@ You should have received a copy of the GNU General Public License along with libdcp. If not, see . + + In addition, as a special exception, the copyright holders give + permission to link the code of portions of this program with the + OpenSSL library under certain conditions as described in each + individual source file, and distribute linked combinations + including the two. + + You must obey the GNU General Public License in all respects + for all of the code used other than OpenSSL. If you modify + file(s) with this exception, you may extend this exception to your + version of the file(s), but you are not obligated to do so. If you + do not wish to do so, delete this exception statement from your + version. If you delete this exception statement from all source + files in the program, then also delete it here. */ #include "cpl.h" @@ -35,8 +49,6 @@ #include using std::string; -using std::stringstream; -using std::ostream; using std::list; using std::pair; using std::make_pair; @@ -193,9 +205,8 @@ CPL::equals (shared_ptr other, EqualityOptions opt, NoteHandler not } if (_annotation_text != other_cpl->_annotation_text && !opt.cpl_annotation_texts_can_differ) { - stringstream s; - s << "CPL: annotation texts differ: " << _annotation_text << " vs " << other_cpl->_annotation_text << "\n"; - note (DCP_ERROR, s.str ()); + string const s = "CPL: annotation texts differ: " + _annotation_text + " vs " + other_cpl->_annotation_text + "\n"; + note (DCP_ERROR, s); return false; }