modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
This commit is contained in:
@@ -114,7 +114,9 @@ void ViewProviderPage::attach(App::DocumentObject* pcFeat)
|
||||
{
|
||||
ViewProviderDocumentObject::attach(pcFeat);
|
||||
|
||||
//NOLINTBEGIN
|
||||
auto bnd = std::bind(&ViewProviderPage::onGuiRepaint, this, sp::_1);
|
||||
//NOLINTEND
|
||||
TechDraw::DrawPage* feature = dynamic_cast<TechDraw::DrawPage*>(pcFeat);
|
||||
if (feature) {
|
||||
connectGuiRepaint = feature->signalGuiPaint.connect(bnd);
|
||||
|
||||
Reference in New Issue
Block a user