diff options
author | David Kalnischkies <david@kalnischkies.de> | 2019-07-08 15:48:59 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2019-07-08 15:51:17 +0200 |
commit | 2b734a7ec429825c7007c1093883229e069d36c7 (patch) | |
tree | b67360f3201634c82f5a9e7dd84f47b28fa63acb /methods/aptmethod.h | |
parent | cbe90ee516d7f747f981e423f164f99eb767240b (diff) |
Apply various suggestions by cppcheck
Reported-By: cppcheck
Diffstat (limited to 'methods/aptmethod.h')
-rw-r--r-- | methods/aptmethod.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/aptmethod.h b/methods/aptmethod.h index 02ef04cf9..5d792ceb7 100644 --- a/methods/aptmethod.h +++ b/methods/aptmethod.h @@ -502,10 +502,10 @@ class aptAuthConfMethod : public aptMethod auto const netrcparts = _config->FindDir("Dir::Etc::netrcparts"); if (netrcparts.empty() == false) { - for (auto const &netrc : GetListOfFilesInDir(netrcparts, "conf", true, true)) + for (auto &&netrcpart : GetListOfFilesInDir(netrcparts, "conf", true, true)) { authconfs.emplace_back(new FileFd()); - authconfs.back()->Open(netrc, FileFd::ReadOnly); + authconfs.back()->Open(netrcpart, FileFd::ReadOnly); } } _error->RevertToStack(); |