namespace libdcp -> dcp.
[libdcp.git] / test / rewrite_subs.cc
index 651b207ac3f4d16267aa4fdab569794e8ce3709c..5628ec70ecf8859fc0f5a8b0ab09964ff30e59f7 100644 (file)
@@ -1,13 +1,15 @@
 #include <iostream>
 #include "dcp.h"
+#include "cpl.h"
 #include "reel.h"
 #include "subtitle_asset.h"
+#include "exceptions.h"
 
 using std::cout;
 using std::cerr;
 using std::list;
 using boost::shared_ptr;
-using namespace libdcp;
+using namespace dcp;
 
 int
 main (int argc, char* argv[])
@@ -21,11 +23,11 @@ try
        DCP* dcp = new DCP (argv[1]);
        dcp->read (false);
        
-       list<shared_ptr<const CPL> > cpls = dcp->cpls ();
-       for (list<boost::shared_ptr<const CPL> >::iterator i = cpls.begin(); i != cpls.end(); ++i) {
+       list<shared_ptr<CPL> > cpls = dcp->cpls ();
+       for (list<boost::shared_ptr<CPL> >::iterator i = cpls.begin(); i != cpls.end(); ++i) {
 
-               list<shared_ptr<const Reel> > reels = (*i)->reels ();
-               for (list<shared_ptr<const Reel> >::iterator j = reels.begin(); j != reels.end(); ++j) {
+               list<shared_ptr<Reel> > reels = (*i)->reels ();
+               for (list<shared_ptr<Reel> >::iterator j = reels.begin(); j != reels.end(); ++j) {
 
                        if ((*j)->main_subtitle()) {
                                (*j)->main_subtitle()->write_xml ();