modernize C++: replace boost::function with std::function

This commit is contained in:
wmayer
2022-06-30 20:31:55 +02:00
parent 97f9320bb3
commit 0f5725b34a
20 changed files with 60 additions and 57 deletions

View File

@@ -403,7 +403,7 @@ void TaskView::keyPressEvent(QKeyEvent* ke)
func->setAutoDelete(true);
Gui::Document* doc = Gui::Application::Instance->getDocument(ActiveDialog->getDocumentName().c_str());
if (doc) {
func->setFunction(boost::bind(&Document::resetEdit, doc));
func->setFunction(std::bind(&Document::resetEdit, doc));
QTimer::singleShot(0, func, SLOT(timeout()));
}
}