diff options
Diffstat (limited to 'lib/qt_connection_util.h')
-rw-r--r-- | lib/qt_connection_util.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/qt_connection_util.h b/lib/qt_connection_util.h index 1b3229d4..94c1ec60 100644 --- a/lib/qt_connection_util.h +++ b/lib/qt_connection_util.h @@ -22,10 +22,8 @@ #include <QtCore/QPointer> -namespace QMatrixClient -{ -namespace _impl -{ +namespace QMatrixClient { +namespace _impl { template <typename SenderT, typename SignalT, typename ContextT, typename... ArgTs> inline QMetaObject::Connection connectUntil(SenderT* sender, SignalT signal, ContextT* context, @@ -86,12 +84,10 @@ inline auto connectSingleShot(SenderT* sender, SignalT signal, * destruction. */ template <typename T> -class ConnectionsGuard : public QPointer<T> -{ +class ConnectionsGuard : public QPointer<T> { public: ConnectionsGuard(T* publisher, QObject* subscriber) - : QPointer<T>(publisher) - , subscriber(subscriber) + : QPointer<T>(publisher), subscriber(subscriber) {} ~ConnectionsGuard() { |