refactor: Fix remaining modernize- warnings

This commit is contained in:
Lars Toenning
2025-10-25 15:48:35 +02:00
parent 4e6a6887f1
commit 369450107b
46 changed files with 545 additions and 468 deletions

View File

@@ -48,7 +48,9 @@ namespace swift::misc::private_ns
auto invokeMethod(T *object, F &&func, Ts &&...args)
{
const auto invoker = [](auto &&...x) { return private_ns::invokeSlot(std::forward<decltype(x)>(x)...); };
// NOLINTBEGIN(modernize-avoid-bind)
auto method = std::bind(invoker, std::forward<F>(func), object, std::forward<Ts>(args)...);
// NOLINTEND(modernize-avoid-bind)
CPromise<decltype(std::move(method)())> promise;
QMetaObject::invokeMethod(
object, [promise, method = std::move(method)]() mutable { promise.setResultFrom(std::move(method)); });