diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-03-24 07:22:38 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-03-24 07:23:06 (GMT) |
commit | f536e6f3fb588e2cb8ab86a1f4eab75db011cefa (patch) | |
tree | b97d7538515866402fd02d92e4784a197e21aa0b | |
parent | 88060f471766222c54a080900f73abf29586a6f4 (diff) | |
download | CMake-f536e6f3fb588e2cb8ab86a1f4eab75db011cefa.zip CMake-f536e6f3fb588e2cb8ab86a1f4eab75db011cefa.tar.gz CMake-f536e6f3fb588e2cb8ab86a1f4eab75db011cefa.tar.bz2 |
CPackIFW: Remove redundant variable assignment
This was showing up in cppcheck results.
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWPackage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWPackage.cxx b/Source/CPack/IFW/cmCPackIFWPackage.cxx index c4bd7f1..5191c96 100644 --- a/Source/CPack/IFW/cmCPackIFWPackage.cxx +++ b/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); |