1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

CPackIFW: Remove redundant variable assignment

This was showing up in cppcheck results.
This commit is contained in:
Craig Scott
2021-03-24 18:22:38 +11:00
parent 88060f4717
commit f536e6f3fb

View File

@@ -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);