瀏覽代碼

source_files should be Filenames

David Rose 22 年之前
父節點
當前提交
7daecb2bf0
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 5 1
      pandatool/src/cvscopy/cvsCopy.cxx
  2. 2 1
      pandatool/src/cvscopy/cvsCopy.h

+ 5 - 1
pandatool/src/cvscopy/cvsCopy.cxx

@@ -209,7 +209,11 @@ handle_args(Args &args) {
     return false;
   }
 
-  copy(args.begin(), args.end(), back_inserter(_source_files));
+  for (Args::const_iterator ai = args.begin();
+       ai != args.end();
+       ++ai) {
+    _source_files.push_back(Filename::from_os_specific(*ai));
+  }
   return true;
 }
 

+ 2 - 1
pandatool/src/cvscopy/cvsCopy.h

@@ -25,6 +25,7 @@
 
 #include "programBase.h"
 #include "filename.h"
+#include "pvector.h"
 
 ////////////////////////////////////////////////////////////////////
 //       Class : CVSCopy
@@ -81,7 +82,7 @@ protected:
   string _cvs_binary;
   bool _user_aborted;
 
-  typedef vector_string SourceFiles;
+  typedef pvector<Filename> SourceFiles;
   SourceFiles _source_files;
 
   CVSSourceTree _tree;