diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/qt_connection_util.h | 3 |
1 files changed, 1 insertions, 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<QMetaObject::Connection> pConn = - std::make_unique<QMetaObject::Connection>(); + auto pConn = std::make_unique<QMetaObject::Connection>(); auto& c = *pConn; // Save the reference before pConn is moved from c = QObject::connect( sender, signal, context, |