X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flastfiles.C;h=ef200b2c9d992c2f9941e77d107082edd069d337;hb=1fa0fb5c67656cacbe3cfe6e8b08dd98cada1f73;hp=d53206221975b11dcc12033aadf5c5eb1f449669;hpb=eeaae9c35568b8852210420c727068a872ba3071;p=lyx.git diff --git a/src/lastfiles.C b/src/lastfiles.C index d532062219..ef200b2c9d 100644 --- a/src/lastfiles.C +++ b/src/lastfiles.C @@ -1,34 +1,35 @@ -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. +/** + * \file lastfiles.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * ====================================================== */ + * \author Lars Gullik Bjønnes + * + * Full author contact details are available in file CREDITS. + */ #include +#include "lastfiles.h" +#include "debug.h" -#ifdef __GNUG__ -#pragma implementation -#endif +#include "support/FileInfo.h" -#include #include +#include +#include -#include "support/FileInfo.h" -#include "lastfiles.h" -#include "debug.h" +using lyx::support::FileInfo; -using std::ifstream; +using std::copy; +using std::endl; +using std::find; using std::getline; +using std::string; +using std::ifstream; 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) @@ -59,7 +60,7 @@ void LastFiles::readFile(string const & filename) string tmp; FileInfo fileInfo; - while(getline(ifs, tmp) && files.size() < num_files) { + while (getline(ifs, tmp) && files.size() < num_files) { if (dostat) { if (!(fileInfo.newFile(tmp).exist() && fileInfo.isRegular()))