Commit 1d53cd04 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Now we can use std::as_const

parent dbab4969
......@@ -138,7 +138,7 @@ void ExportMenu::getKipiItems()
KIPI::PluginLoader::PluginList pluginList = loader->pluginList();
for (const auto &pluginInfo : qAsConst(pluginList)) {
for (const auto &pluginInfo : std::as_const(pluginList)) {
if (!(pluginInfo->shouldLoad())) {
continue;
}
......@@ -163,7 +163,7 @@ void ExportMenu::getKipiItems()
}
}
for (auto action : qAsConst(exportActions)) {
for (auto action : std::as_const(exportActions)) {
mKipiMenu->addAction(action);
}
}
......
......@@ -212,7 +212,7 @@ void ScreenShotSourceMeta2::handleSourceFinished()
QVector<QImage> results;
results.reserve(m_sources.count());
for (const ScreenShotSource2 *source : qAsConst(m_sources)) {
for (const ScreenShotSource2 *source : std::as_const(m_sources)) {
results.append(source->result());
}
......
......@@ -840,7 +840,7 @@ void QuickEditor::drawDragHandles(QPainter &painter)
QPainterPath path;
// add handles to the path
for (QPointF handlePosition : qAsConst(mHandlePositions)) {
for (QPointF handlePosition : std::as_const(mHandlePositions)) {
path.addEllipse(handlePosition, mHandleRadius, mHandleRadius);
}
......
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