summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-12 13:15:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-12 13:15:38 (GMT)
commit1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa (patch)
tree0d43865e3fc9e04870c6d7e1360ee81d1da1a68c /Source/cmSystemTools.cxx
parentd83bff86409c0e414046d2aeb75946037e0d2de3 (diff)
parentd25a5a7ec91bfa072d3cf1a302830a54506c88c0 (diff)
downloadCMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.zip
CMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.tar.gz
CMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.tar.bz2
Merge topic 'modernize-use-auto'
d25a5a7ec9 clang-tidy: modernize-use-auto Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3783
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 074faa5..86af683 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1645,8 +1645,8 @@ int cmSystemTools::WaitForLine(cmsysProcess* process, std::string& line,
std::vector<char>& err)
{
line.clear();
- std::vector<char>::iterator outiter = out.begin();
- std::vector<char>::iterator erriter = err.begin();
+ auto outiter = out.begin();
+ auto erriter = err.begin();
cmProcessOutput processOutput;
std::string strdata;
while (true) {
@@ -2552,8 +2552,7 @@ bool cmSystemTools::RemoveRPath(std::string const& file, std::string* emsg,
// Adjust the entry list as necessary to remove the run path
unsigned long entriesErased = 0;
- for (cmELF::DynamicEntryList::iterator it = dentries.begin();
- it != dentries.end();) {
+ for (auto it = dentries.begin(); it != dentries.end();) {
if (it->first == cmELF::TagRPath || it->first == cmELF::TagRunPath) {
it = dentries.erase(it);
entriesErased++;