Missing use of boost::filesystem::path.
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Aug 2013 15:15:16 +0000 (16:15 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Aug 2013 15:15:16 +0000 (16:15 +0100)
src/lib/film.cc
src/lib/film.h

index 9b339ea244bb4d08d3a41465cb4a60a75c77f2de..5dc808c02bbde2da9a8baf70f1125f76d1af18f7 100644 (file)
@@ -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 == "..") {
index c3c53ecd1edfccab022206eb4f9bb5fb3a3175dd..e7f017b0278b2623178cef5e034280adb37698e6 100644 (file)
@@ -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;