summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/.clang-tidy1
-rw-r--r--src/gui/App.cpp9
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()