浏览代码

COMP: fix warning

Bill Hoffman 20 年之前
父节点
当前提交
a2c1777300
共有 1 个文件被更改,包括 6 次插入9 次删除
  1. 6 9
      Source/cmLocalGenerator.cxx

+ 6 - 9
Source/cmLocalGenerator.cxx

@@ -1680,15 +1680,12 @@ std::string cmLocalGenerator::GetRealDependency(const char* inName,
     // This is a full path.  Return it as given.
     return inName;
     }
-  else
-    {
-    // Treat the name as relative to the source directory in which it
-    // was given.
-    name = m_Makefile->GetCurrentDirectory();
-    name += "/";
-    name += inName;
-    return name;
-    }
+  // Treat the name as relative to the source directory in which it
+  // was given.
+  name = m_Makefile->GetCurrentDirectory();
+  name += "/";
+  name += inName;
+  return name;
 }
 
 //----------------------------------------------------------------------------