Commit 216372af authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

fix MSVC warnings

parent 3ed8a741
Pipeline #167492 passed with stage
in 41 minutes and 8 seconds
......@@ -498,7 +498,7 @@ KTextEditor::View *KateViewManager::createView(KTextEditor::Document *doc, KateV
if (!doc->url().isLocalFile()) {
QSharedPointer<QMetaObject::Connection> conn(new QMetaObject::Connection());
auto handler = [view, conn, c](KTextEditor::Document *) {
disconnect(*conn);
QObject::disconnect(*conn);
view->setCursorPosition(c);
};
......
......@@ -1038,7 +1038,7 @@ void KateViewSpace::restoreConfig(KateViewManager *viewMan, const KConfigBase *c
if (!view->document()->url().isLocalFile()) {
QSharedPointer<QMetaObject::Connection> conn(new QMetaObject::Connection());
auto handler = [conn, view, configGroup](KTextEditor::Document *) {
disconnect(*conn);
QObject::disconnect(*conn);
view->readSessionConfig(configGroup);
};
*conn = connect(doc, &KTextEditor::Document::textChanged, view, handler);
......
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