cmMakefile: Remove intermediate variable.

This commit is contained in:
Stephen Kelly 2015-04-18 14:50:34 +02:00
parent 2d6121a9a7
commit e4f8f1f1b7
1 changed files with 2 additions and 4 deletions

View File

@ -545,7 +545,7 @@ bool cmMakefile::ReadListFile(const char* filename_in,
const char* external = 0;
std::string external_abs;
const char* filename = filename_in;
const char* filenametoread = filename_in;
std::string filename_abs;
if (external_in)
@ -559,12 +559,10 @@ bool cmMakefile::ReadListFile(const char* filename_in,
filename_abs =
cmSystemTools::CollapseFullPath(filename_in,
this->cmStartDirectory.c_str());
filename = filename_abs.c_str();
filenametoread = filename_abs.c_str();
}
}
const char *filenametoread = filename;
// keep track of the current file being read
if (filenametoread)
{