Commit 1c5f0578 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

minimal qt6 build fixes

parent e3e118f7
Pipeline #153611 passed with stage
in 2 minutes and 25 seconds
......@@ -28,7 +28,6 @@
#include <QCompleter>
#include <QDir>
#include <QDirModel>
#include <QFileDialog>
#include <QFileInfo>
#include <QIcon>
......@@ -885,7 +884,7 @@ bool KateBuildView::buildCurrentTarget()
return false;
}
QFileInfo docFInfo = docUrl().toLocalFile(); // docUrl() saves the current document
const QFileInfo docFInfo(docUrl().toLocalFile()); // docUrl() saves the current document
QModelIndex ind = m_targetsUi->targetsView->currentIndex();
m_previousIndex = ind;
......@@ -911,7 +910,7 @@ bool KateBuildView::buildCurrentTarget()
// a single target can serve to build lots of projects with similar directory layout
if (m_projectPluginView) {
QFileInfo baseDir = m_projectPluginView->property("projectBaseDir").toString();
const QFileInfo baseDir(m_projectPluginView->property("projectBaseDir").toString());
dir.replace(QStringLiteral("%B"), baseDir.absoluteFilePath());
dir.replace(QStringLiteral("%b"), baseDir.baseName());
}
......
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