Commit 4e6bdaa4 authored by Igor Kushnir's avatar Igor Kushnir Committed by Milian Wolff
Browse files

DUChainPrivate: make local index variables const

parent f2302c00
......@@ -554,7 +554,7 @@ public:
[infoIndex,
request = EnvironmentInformationListRequest(info->url())](EnvironmentInformationListRepo& repo) mutable {
// Remove it from the environment information lists if it was there
uint index = repo.findIndex(request);
const uint index = repo.findIndex(request);
if (index) {
EnvironmentInformationListItem item(*repo.itemFromIndex(index));
......@@ -570,7 +570,7 @@ public:
LockedItemRepository::write<EnvironmentInformationItem>(
[infoIndex, removed, removed2](EnvironmentInformationRepo& repo) {
uint index = repo.findIndex(infoIndex);
const uint index = repo.findIndex(infoIndex);
if (index) {
repo.deleteItem(index);
}
......@@ -1194,7 +1194,7 @@ private:
LockedItemRepository::write<EnvironmentInformationListItem>(
[&, request = EnvironmentInformationListRequest(url)](EnvironmentInformationListRepo& repo) mutable {
uint index = repo.findIndex(request);
const uint index = repo.findIndex(request);
if (index) {
// We only handle adding items here, since we can never be sure whether everything is loaded
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment