Fix shadowing warning

This commit is contained in:
Martchus 2021-08-22 00:02:29 +02:00
parent 9b4fcdc2b3
commit d1b7187085
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
set(META_APP_DESCRIPTION "C++ library to read/write passwords from/to encrypted files")
set(META_VERSION_MAJOR 5)
set(META_VERSION_MINOR 0)
set(META_VERSION_PATCH 6)
set(META_VERSION_PATCH 7)
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)
# add project files

View File

@ -302,7 +302,7 @@ void NodeEntry::deleteChildren(int begin, int end)
// adjust indices of subsequent children
const int diff = end - begin;
for (auto iterator = m_children.begin() + begin, end = m_children.end(); iterator != end; ++iterator) {
for (auto iterator = m_children.begin() + begin, end2 = m_children.end(); iterator != end2; ++iterator) {
(*iterator)->m_index -= diff;
}
}