mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Const
This commit is contained in:
parent
68e60f95d3
commit
73e7cfb26a
@ -565,8 +565,8 @@ void CVS::scanMaster()
|
|||||||
LYXERR(Debug::LYXVC, "LyXVC::CVS: scanMaster. \n Checking: " << master_);
|
LYXERR(Debug::LYXVC, "LyXVC::CVS: scanMaster. \n Checking: " << master_);
|
||||||
// Ok now we do the real scan...
|
// Ok now we do the real scan...
|
||||||
ifstream ifs(master_.toFilesystemEncoding().c_str());
|
ifstream ifs(master_.toFilesystemEncoding().c_str());
|
||||||
string name = onlyFileName(owner_->absFileName());
|
string const name = onlyFileName(owner_->absFileName());
|
||||||
string tmpf = '/' + name + '/';
|
string const tmpf = '/' + name + '/';
|
||||||
LYXERR(Debug::LYXVC, "\tlooking for `" << tmpf << '\'');
|
LYXERR(Debug::LYXVC, "\tlooking for `" << tmpf << '\'');
|
||||||
string line;
|
string line;
|
||||||
static regex const reg("/(.*)/(.*)/(.*)/(.*)/(.*)");
|
static regex const reg("/(.*)/(.*)/(.*)/(.*)/(.*)");
|
||||||
@ -589,8 +589,8 @@ void CVS::scanMaster()
|
|||||||
//sm[5]; // tag or tagdate
|
//sm[5]; // tag or tagdate
|
||||||
FileName file(owner_->absFileName());
|
FileName file(owner_->absFileName());
|
||||||
if (file.isReadableFile()) {
|
if (file.isReadableFile()) {
|
||||||
time_t mod = file.lastModified();
|
time_t const mod = file.lastModified();
|
||||||
string mod_date = rtrim(asctime(gmtime(&mod)), "\n");
|
string const mod_date = rtrim(asctime(gmtime(&mod)), "\n");
|
||||||
LYXERR(Debug::LYXVC, "Date in Entries: `" << file_date
|
LYXERR(Debug::LYXVC, "Date in Entries: `" << file_date
|
||||||
<< "'\nModification date of file: `" << mod_date << '\'');
|
<< "'\nModification date of file: `" << mod_date << '\'');
|
||||||
if (file.isReadOnly()) {
|
if (file.isReadOnly()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user