Improve and simplify code with modern C++ features
Change-Id: I83bf5513c2a1f90ba5a59e93c473306864b27d94
diff --git a/daemon/fw/face-table.cpp b/daemon/fw/face-table.cpp
index 3e19dd1..7e1880f 100644
--- a/daemon/fw/face-table.cpp
+++ b/daemon/fw/face-table.cpp
@@ -86,7 +86,7 @@
" remote=" << face->getRemoteUri() <<
" local=" << face->getLocalUri());
- connectFaceClosedSignal(*face, bind(&FaceTable::remove, this, faceId));
+ connectFaceClosedSignal(*face, [=] { remove(faceId); });
this->afterAdd(*face);
}