diff options
author | David Robillard <d@drobilla.net> | 2022-12-14 17:46:37 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-14 18:04:27 -0500 |
commit | c57a4fd74afe56fcece6b6f5f36146c9c57e7108 (patch) | |
tree | 8e292ddad19f103e032e4399dc26b92fbd05950f | |
parent | 1ec4ef7972bf28dbca9ee3503a3dcc688ed74157 (diff) | |
download | ingen-c57a4fd74afe56fcece6b6f5f36146c9c57e7108.tar.gz ingen-c57a4fd74afe56fcece6b6f5f36146c9c57e7108.tar.bz2 ingen-c57a4fd74afe56fcece6b6f5f36146c9c57e7108.zip |
Avoid use of std::bind
-rw-r--r-- | src/gui/.clang-tidy | 1 | ||||
-rw-r--r-- | src/gui/App.cpp | 9 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/.clang-tidy b/src/gui/.clang-tidy index 5f6e0c3f..f71d2555 100644 --- a/src/gui/.clang-tidy +++ b/src/gui/.clang-tidy @@ -24,6 +24,5 @@ Checks: > -google-runtime-references, -hicpp-multiway-paths-covered, -hicpp-vararg, - -modernize-avoid-bind, -readability-convert-member-functions-to-static, InheritParentConfig: true diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 23b77df5..bbad8d0b 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -98,11 +98,10 @@ App::App(ingen::World& world) client::PluginModel::set_rdf_world(*world.rdf_world()); client::PluginModel::set_lilv_world(world.lilv_world()); - world.log().set_sink(std::bind(&MessagesWindow::log, - _messages_window, - std::placeholders::_1, - std::placeholders::_2, - std::placeholders::_3)); + world.log().set_sink( + [this](const LV2_URID type, const char* fmt, va_list args) { + return _messages_window->log(type, fmt, args); + }); } App::~App() |