From d1b718708521ff346154f53cc172d40bfdd75265 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 22 Aug 2021 00:02:29 +0200 Subject: [PATCH] Fix shadowing warning --- CMakeLists.txt | 2 +- io/entry.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e3f76a..24c08b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/io/entry.cpp b/io/entry.cpp index 0920127..3f9d9ad 100644 --- a/io/entry.cpp +++ b/io/entry.cpp @@ -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; } }