X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/a5e266e538cb32c3689cf02f23246812acbf2d8c..a24327cd50ef17b953ecb908d260b73460158107:/src/kitemviews/kitemset.cpp diff --git a/src/kitemviews/kitemset.cpp b/src/kitemviews/kitemset.cpp index f855368c1..1200bc7a9 100644 --- a/src/kitemviews/kitemset.cpp +++ b/src/kitemviews/kitemset.cpp @@ -1,27 +1,11 @@ -/*************************************************************************** - * Copyright (C) 2013 by Frank Reininghaus * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * - ***************************************************************************/ +/* + * SPDX-FileCopyrightText: 2013 Frank Reininghaus + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ #include "kitemset.h" -#include - -#include KItemSet::iterator KItemSet::insert(int i) { @@ -213,14 +197,14 @@ KItemSet KItemSet::operator^(const KItemSet& other) const const QVector::iterator end = rangeBoundaries.end(); QVector::iterator it = begin; - foreach (const KItemRange& range, m_itemRanges) { + for (const KItemRange& range : qAsConst(m_itemRanges)) { *it++ = range.index; *it++ = range.index + range.count; } const QVector::iterator middle = it; - foreach (const KItemRange& range, other.m_itemRanges) { + for (const KItemRange& range : qAsConst(other.m_itemRanges)) { *it++ = range.index; *it++ = range.index + range.count; }