summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-04-26 13:27:46 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-04-29 07:54:22 (GMT)
commit87fe031a0703f07b8636f8ea59b6746788e71869 (patch)
treec5dd5704ef8688c65e9eae923299d5a00c76f3c9 /Source/CPack
parentf9da4cf8f1c56333511661de9fc74f4b82c1675b (diff)
downloadCMake-87fe031a0703f07b8636f8ea59b6746788e71869.zip
CMake-87fe031a0703f07b8636f8ea59b6746788e71869.tar.gz
CMake-87fe031a0703f07b8636f8ea59b6746788e71869.tar.bz2
cmList class: various enhancements
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/IFW/cmCPackIFWCommon.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWCommon.cxx b/Source/CPack/IFW/cmCPackIFWCommon.cxx
index 4ff3a10..4a868ae 100644
--- a/Source/CPack/IFW/cmCPackIFWCommon.cxx
+++ b/Source/CPack/IFW/cmCPackIFWCommon.cxx
@@ -80,15 +80,15 @@ void cmCPackIFWCommon::ExpandListArgument(
return;
}
- cmList::index_type i = 0;
- std::size_t c = args.size();
+ cmList::size_type i = 0;
+ auto c = args.size();
if (c % 2) {
argsOut[""] = args[i];
++i;
}
--c;
- for (; i < static_cast<cmList::index_type>(c); i += 2) {
+ for (; i < c; i += 2) {
argsOut[args[i]] = args[i + 1];
}
}
@@ -101,15 +101,15 @@ void cmCPackIFWCommon::ExpandListArgument(
return;
}
- cmList::index_type i = 0;
- std::size_t c = args.size();
+ cmList::size_type i = 0;
+ auto c = args.size();
if (c % 2) {
argsOut.insert(std::pair<std::string, std::string>("", args[i]));
++i;
}
--c;
- for (; i < static_cast<cmList::index_type>(c); i += 2) {
+ for (; i < c; i += 2) {
argsOut.insert(std::pair<std::string, std::string>(args[i], args[i + 1]));
}
}