* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#include "lastfiles.h"
#include "debug.h"
-using std::ifstream;
using std::getline;
-using std::ofstream;
-using std::copy;
-using std::ostream_iterator;
-using std::find;
using std::endl;
+
LastFiles::LastFiles(string const & filename, bool st, unsigned int num)
: dostat(st)
{
{
// we will not complain if we can't find filename nor will
// we issue a warning. (Lgb)
- ifstream ifs(filename.c_str());
+ std::ifstream ifs(filename.c_str());
string tmp;
FileInfo fileInfo;
void LastFiles::writeFile(string const & filename) const
{
- ofstream ofs(filename.c_str());
+ std::ofstream ofs(filename.c_str());
if (ofs) {
- copy(files.begin(), files.end(),
- ostream_iterator<string>(ofs, "\n"));
+ std::copy(files.begin(), files.end(),
+ std::ostream_iterator<string>(ofs, "\n"));
} else
lyxerr << "LyX: Warning: unable to save LastFiles: "
<< filename << endl;
void LastFiles::newFile(string const & file)
{
// If file already exist, delete it and reinsert at front.
- Files::iterator it = find(files.begin(), files.end(), file);
+ Files::iterator it = std::find(files.begin(), files.end(), file);
if (it != files.end())
files.erase(it);
files.push_front(file);