Prechádzať zdrojové kódy

cmMakefile: Remove intermediate variable.

Stephen Kelly 10 rokov pred
rodič
commit
7d24854736
1 zmenil súbory, kde vykonal 2 pridanie a 3 odobranie
  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)
 {
   this->AddDefinition("CMAKE_PARENT_LIST_FILE", this->GetCurrentListFile());
-  std::string filenametoread =
+  this->cmCurrentListFile =
     cmSystemTools::CollapseFullPath(listfile,
                                     this->cmStartDirectory.c_str());
-  this->cmCurrentListFile = filenametoread;
-  return this->ReadListFile(0, filenametoread.c_str(),
+  return this->ReadListFile(0, this->cmCurrentListFile.c_str(),
                             noPolicyScope);
 }