modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
This commit is contained in:
@@ -624,10 +624,12 @@ Py::Object UiLoaderPy::load(const Py::Tuple& args)
|
||||
|
||||
Py::Object UiLoaderPy::createWidget(const Py::Tuple& args)
|
||||
{
|
||||
//NOLINTBEGIN
|
||||
return wrapFromWidgetFactory(args, std::bind(&UiLoader::createWidget, loader.get(),
|
||||
std::placeholders::_1,
|
||||
std::placeholders::_2,
|
||||
std::placeholders::_3));
|
||||
//NOLINTEND
|
||||
}
|
||||
|
||||
Py::Object UiLoaderPy::addPluginPath(const Py::Tuple& args)
|
||||
|
||||
Reference in New Issue
Block a user