浏览代码

Makefiles: Rename local variable

In this context, 'ret' means 'return', but I don't really know what that
means.  It is not consistent with types and other variables used in the
vicinity for these things.
Stephen Kelly 9 年之前
父节点
当前提交
0bbdbd95c9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 2 - 2
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -2048,10 +2048,10 @@ void cmLocalUnixMakefileGenerator3::CreateCDCommand(
   std::vector<std::string>& commands, const char* tgtDir,
   cmOutputConverter::RelativeRoot relRetDir)
 {
-  const char* retDir = this->GetRelativeRootPath(relRetDir);
+  const char* relDir = this->GetRelativeRootPath(relRetDir);
 
   // do we need to cd?
-  if (!strcmp(tgtDir, retDir)) {
+  if (!strcmp(tgtDir, relDir)) {
     return;
   }