Commit c8aab38f authored by Laurent Montel's avatar Laurent Montel
Browse files

Add missing &

parent 423f9a64
Pipeline #225706 passed with stage
in 5 minutes and 15 seconds
......@@ -344,7 +344,7 @@ void Cantor::Session::updateEnabledGraphicPackages(const QList<Cantor::GraphicPa
else
{
QList<GraphicPackage> packagesExceptIgnored;
for (const GraphicPackage package : newEnabledPackages)
for (const GraphicPackage& package : newEnabledPackages)
if (d->ignorableGraphicPackageIds.contains(package.id()) == false)
packagesExceptIgnored.append(package);
......@@ -361,7 +361,7 @@ void Cantor::Session::updateEnabledGraphicPackages(const QList<Cantor::GraphicPa
unavailablePackages.append(package);
}
for (const GraphicPackage package : d->enabledGraphicPackages)
for (const GraphicPackage& package : d->enabledGraphicPackages)
if (GraphicPackage::findById(package, willEnabledPackages) == -1)
evaluateExpression(package.disableSupportCommand(), Cantor::Expression::DeleteOnFinish, true);
......
......@@ -532,7 +532,7 @@ bool MarkdownEntry::eventFilter(QObject* object, QEvent* event)
{
QList<QByteArray> supportedFormats = QImageReader::supportedImageFormats();
for (const QUrl url : mimeData->urls())
for (const QUrl &url : mimeData->urls())
{
const QString filename = url.toLocalFile();
QFileInfo info(filename);
......
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