diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-14 16:15:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-14 16:15:16 +0100 |
| commit | 8de868219596a8af8383341667cd96853646fbea (patch) | |
| tree | 1c639b1ac0c3bb19a62cb99e31c73ae887379a3c /src/lib | |
| parent | 5352daa4fa25f2ec3353ace953d23d9cb09f3549 (diff) | |
Missing use of boost::filesystem::path.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/film.cc | 6 | ||||
| -rw-r--r-- | src/lib/film.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 9b339ea24..5dc808c02 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -80,10 +80,10 @@ int const Film::state_version = 4; /** Construct a Film object in a given directory. * - * @param d Film directory. + * @param dir Film directory. */ -Film::Film (string d) +Film::Film (boost::filesystem::path dir) : _playlist (new Playlist) , _use_dci_name (true) , _dcp_content_type (Config::instance()->default_dcp_content_type ()) @@ -108,7 +108,7 @@ Film::Film (string d) (Code swiped from Adam Bowen on stackoverflow) */ - boost::filesystem::path p (boost::filesystem::system_complete (d)); + boost::filesystem::path p (boost::filesystem::system_complete (dir)); boost::filesystem::path result; for (boost::filesystem::path::iterator i = p.begin(); i != p.end(); ++i) { if (*i == "..") { diff --git a/src/lib/film.h b/src/lib/film.h index c3c53ecd1..e7f017b02 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -52,7 +52,7 @@ class AudioContent; class Film : public boost::enable_shared_from_this<Film>, public boost::noncopyable { public: - Film (std::string d); + Film (boost::filesystem::path); std::string info_dir () const; std::string j2c_path (int, Eyes, bool) const; |
