Commit 440c12cd authored by Andrius Štikonas's avatar Andrius Štikonas

Convert foreach to C++11 ranged based for.

parent 0ef7b4d4
project(lskat)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.15.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
......
......@@ -256,7 +256,7 @@ void LoadThread::run()
d->renderer();
}
foreach (const QString &element, elementsToRender)
for (const QString &element : qAsConst(elementsToRender))
{
{
QMutexLocker l(killMutex);
......
......@@ -115,7 +115,8 @@ void KCardWidget::insertCardIcons()
// Rebuild list
QSize itemSize;
foreach (const QString &name, CardDeckInfo::deckNames())
const QStringList decknames = CardDeckInfo::deckNames();
for (const QString &name : decknames)
{
KCardThemeInfo v = CardDeckInfo::deckInfo(name);
// Show only SVG files?
......
Markdown is supported
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