summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-18 12:50:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-18 13:29:18 (GMT)
commite4f8f1f1b706d7efc9964826ff4572d27a3062d3 (patch)
tree8fead34e158d6d65825a7f8102bc060b93683ebe
parent2d6121a9a709e319cca733787bcc21bac593a232 (diff)
downloadCMake-e4f8f1f1b706d7efc9964826ff4572d27a3062d3.zip
CMake-e4f8f1f1b706d7efc9964826ff4572d27a3062d3.tar.gz
CMake-e4f8f1f1b706d7efc9964826ff4572d27a3062d3.tar.bz2
cmMakefile: Remove intermediate variable.
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 46a10a9..ac71ea5 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -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)
{