Commit 73634172 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

fix some compile warnings

parent 85e39621
......@@ -1326,8 +1326,8 @@ void KateFileTreeModel::setupIcon(ProxyItem *item) const
void KateFileTreeModel::resetHistory()
{
QSet<ProxyItem *> list = QSet<ProxyItem *>::fromList(m_viewHistory);
list += QSet<ProxyItem *>::fromList(m_editHistory);
QSet<ProxyItem *> list{m_viewHistory.begin(), m_viewHistory.end()};
list += QSet<ProxyItem *>{m_editHistory.begin(), m_editHistory.end()};
m_viewHistory.clear();
m_editHistory.clear();
......
......@@ -680,7 +680,7 @@ void KateViewSpace::restoreConfig(KateViewManager *viewMan, const KConfigBase *c
// with applying saved session settings until the remote's temp file is initialised.
if (!view->document()->url().isLocalFile()) {
QSharedPointer<QMetaObject::Connection> conn(new QMetaObject::Connection());
auto handler = [conn, view, configGroup](KTextEditor::Document *doc) {
auto handler = [conn, view, configGroup](KTextEditor::Document *) {
disconnect(*conn);
view->readSessionConfig(configGroup);
};
......
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