From 267219c955b938483c3d113e455c4abd96ef8ce6 Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Fri, 8 Jul 2022 20:00:51 +0200 Subject: qt_connection_util.h: use auto --- lib/qt_connection_util.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/qt_connection_util.h b/lib/qt_connection_util.h index 90bc3f9b..ef7f6f80 100644 --- a/lib/qt_connection_util.h +++ b/lib/qt_connection_util.h @@ -15,8 +15,7 @@ namespace _impl { inline auto connect(auto* sender, auto signal, auto* context, auto slotLike, Qt::ConnectionType connType) { - std::unique_ptr pConn = - std::make_unique(); + auto pConn = std::make_unique(); auto& c = *pConn; // Save the reference before pConn is moved from c = QObject::connect( sender, signal, context, -- cgit v1.2.3