diff options
Diffstat (limited to 'Source/CPack/IFW/cmCPackIFWCommon.cxx')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWCommon.cxx | 12 |
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])); } } |