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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user