Fix incorrect type of Drive container
[dcpomatic.git] / src / lib / cross_osx.cc
index edc81fb594378b942fa02244ade90a7d9f86dc85..7197eef792d4cf9c4c3058414c0f8b9225801889 100644 (file)
@@ -90,6 +90,7 @@ cpu_info ()
 boost::filesystem::path
 app_contents ()
 {
+       std::cout << "program_location=" << boost::dll::program_location() << "\n";
        return boost::dll::program_location().parent_path().parent_path();
 }
 
@@ -242,7 +243,7 @@ disk_appeared(DADiskRef disk, void* context)
 {
        const char* name = DADiskGetBSDName (disk);
        if (name) {
-               list<Drive>* drives = reinterpret_cast<list<Drive>*> (context);
+               vector<Drive>* drives = reinterpret_cast<vector<Drive>*> (context);
                drives->push_back (Drive(name, 0, false, optional<string>(), optional<string>()));
        }
 }