summaryrefslogtreecommitdiffstats
path: root/Source/CPack/WiX/cmWIXSourceWriter.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-19 13:07:33 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-19 13:07:48 (GMT)
commit4547d9a83030f8ae7e636cef16a261c65e6feb40 (patch)
tree3b695694b889d506c61d010102e3824e89e39581 /Source/CPack/WiX/cmWIXSourceWriter.cxx
parent7c28081c147e2eb6c7ad6dee0aada77219af7a6d (diff)
parentf43baf69814176f52b2b229667c4d3e88154bdea (diff)
downloadCMake-4547d9a83030f8ae7e636cef16a261c65e6feb40.zip
CMake-4547d9a83030f8ae7e636cef16a261c65e6feb40.tar.gz
CMake-4547d9a83030f8ae7e636cef16a261c65e6feb40.tar.bz2
Merge topic 'ranged-for'
f43baf69 Meta: modernize old-fashioned loops to range-based `for` (CPack). Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1274
Diffstat (limited to 'Source/CPack/WiX/cmWIXSourceWriter.cxx')
-rw-r--r--Source/CPack/WiX/cmWIXSourceWriter.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/CPack/WiX/cmWIXSourceWriter.cxx b/Source/CPack/WiX/cmWIXSourceWriter.cxx
index a86e28d..dc730e0 100644
--- a/Source/CPack/WiX/cmWIXSourceWriter.cxx
+++ b/Source/CPack/WiX/cmWIXSourceWriter.cxx
@@ -158,9 +158,7 @@ std::string cmWIXSourceWriter::EscapeAttributeValue(std::string const& value)
std::string result;
result.reserve(value.size());
- char c = 0;
- for (size_t i = 0; i < value.size(); ++i) {
- c = value[i];
+ for (char c : value) {
switch (c) {
case '<':
result += "&lt;";