source_files should be Filenames

This commit is contained in:
David Rose 2003-12-01 08:07:27 +00:00
parent 5c414c34ad
commit 7daecb2bf0
2 changed files with 7 additions and 2 deletions

View File

@ -209,7 +209,11 @@ handle_args(Args &args) {
return false; 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; return true;
} }

View File

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