aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-08 20:00:51 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-08 20:04:07 +0200
commit267219c955b938483c3d113e455c4abd96ef8ce6 (patch)
tree2f4de4ea5dc75032fd34596eed624ec361e6d332
parenta5e41aad196f0981f6f881a4f6e0a1c9f2d3e298 (diff)
downloadlibquotient-267219c955b938483c3d113e455c4abd96ef8ce6.tar.gz
libquotient-267219c955b938483c3d113e455c4abd96ef8ce6.zip
qt_connection_util.h: use auto
-rw-r--r--lib/qt_connection_util.h3
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,