瀏覽代碼

CPackIFW: Remove redundant variable assignment

This was showing up in cppcheck results.
Craig Scott 4 年之前
父節點
當前提交
f536e6f3fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/CPack/IFW/cmCPackIFWPackage.cxx

+ 1 - 1
Source/CPack/IFW/cmCPackIFWPackage.cxx

@@ -31,7 +31,7 @@ cmCPackIFWPackage::DependenceStruct::DependenceStruct(
   const std::string& dependence)
 {
   // Search compare section
-  size_t pos = std::string::npos;
+  size_t pos;
   if ((pos = dependence.find("<=")) != std::string::npos) {
     this->Compare.Type = cmCPackIFWPackage::CompareLessOrEqual;
     this->Compare.Value = dependence.substr(pos + 2);