Bläddra i källkod

cmMakefile: Remove intermediate variable.

Stephen Kelly 10 år sedan
förälder
incheckning
7d24854736
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      Source/cmMakefile.cxx

+ 2 - 3
Source/cmMakefile.cxx

@@ -532,11 +532,10 @@ bool cmMakefile::ProcessBuildsystemFile(const char* listfile)
 bool cmMakefile::ReadDependentFile(const char* listfile, bool noPolicyScope)
 bool cmMakefile::ReadDependentFile(const char* listfile, bool noPolicyScope)
 {
 {
   this->AddDefinition("CMAKE_PARENT_LIST_FILE", this->GetCurrentListFile());
   this->AddDefinition("CMAKE_PARENT_LIST_FILE", this->GetCurrentListFile());
-  std::string filenametoread =
+  this->cmCurrentListFile =
     cmSystemTools::CollapseFullPath(listfile,
     cmSystemTools::CollapseFullPath(listfile,
                                     this->cmStartDirectory.c_str());
                                     this->cmStartDirectory.c_str());
-  this->cmCurrentListFile = filenametoread;
-  return this->ReadListFile(0, filenametoread.c_str(),
+  return this->ReadListFile(0, this->cmCurrentListFile.c_str(),
                             noPolicyScope);
                             noPolicyScope);
 }
 }