diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-13 13:46:20 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-13 13:46:20 +0000 |
| commit | 62ee85a258aa9329544d8542dfbcc40ce8177a7a (patch) | |
| tree | 8579cd323c127bb3bff23c216a55cc92a7001651 /src/dcp.cc | |
| parent | ceb30c0b2e73588daa014af57deee7255b175e4d (diff) | |
Use boost starts/ends with methods.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,6 +27,7 @@ #include <cassert> #include <iostream> #include <boost/filesystem.hpp> +#include <boost/algorithm/string.hpp> #include <libxml++/libxml++.h> #include "dcp.h" #include "asset.h" @@ -197,7 +198,7 @@ DCP::read (bool require_mxfs) boost::filesystem::path t = _directory; t /= (*i)->chunks.front()->path; - if (ends_with (t.string(), ".mxf") || ends_with (t.string(), ".ttf")) { + if (boost::algorithm::ends_with (t.string(), ".mxf") || boost::algorithm::ends_with (t.string(), ".ttf")) { continue; } |
