From e232c907eaa8839300e7d45314176abeb3d3f7ea Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Thu, 16 Nov 2017 17:13:58 +0100 Subject: [PATCH] status provider: Use inline not inside the class definition --- statusprovider.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/statusprovider.h b/statusprovider.h index a79ed80..fc349a8 100644 --- a/statusprovider.h +++ b/statusprovider.h @@ -30,7 +30,7 @@ public: void unregisterCallback(size_t id); void unregisterAllCallbacks(); void forwardStatusUpdateCalls(StatusProvider *other = nullptr); - inline StatusProvider *usedProvider(); + StatusProvider *usedProvider(); void tryToAbort(); bool isAborted() const; void invalidateStatus(); @@ -48,9 +48,9 @@ protected: StatusProvider(); private: - inline void invokeCallbacks(); - inline void updateWorstNotificationType(NotificationType notificationType); - inline void transferNotifications(StatusProvider &from); + void invokeCallbacks(); + void updateWorstNotificationType(NotificationType notificationType); + void transferNotifications(StatusProvider &from); NotificationList m_notifications; NotificationType m_worstNotificationType; @@ -283,7 +283,7 @@ inline void StatusProvider::updateWorstNotificationType(NotificationType notific * the notifications are transfered. It also doesn't check whether \a from is the current instance and doesn't * invoke callbacks. */ -void StatusProvider::transferNotifications(StatusProvider &from) +inline void StatusProvider::transferNotifications(StatusProvider &from) { m_notifications.splice(m_notifications.end(), from.m_notifications); m_worstNotificationType |= from.worstNotificationType();