Skip to content
Snippets Groups Projects
Commit 1cfad7e0 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

replace std::bind by lambda

parent f0ff0921
No related branches found
No related tags found
1 merge request!453further corrections suggested by clang-tidy
...@@ -122,7 +122,7 @@ void JobListModel::onRowsInserted(const QModelIndex& parent, int start, int end) ...@@ -122,7 +122,7 @@ void JobListModel::onRowsInserted(const QModelIndex& parent, int start, int end)
void JobListModel::attachToJob(JobItem* job) void JobListModel::attachToJob(JobItem* job)
{ {
job->mapper()->setOnPropertyChange( job->mapper()->setOnPropertyChange(
std::bind(&JobListModel::notifyJobPropertyChange, this, job, std::placeholders::_1), this); [=](const QString& arg) { notifyJobPropertyChange(job, arg); });
} }
void JobListModel::detachFromJob(JobItem* job) void JobListModel::detachFromJob(JobItem* job)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment