status provider: Use inline not inside the class definition

This commit is contained in:
Marius Kittler 2017-11-16 17:13:58 +01:00
parent d5613954a4
commit e232c907ea
1 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ public:
void unregisterCallback(size_t id); void unregisterCallback(size_t id);
void unregisterAllCallbacks(); void unregisterAllCallbacks();
void forwardStatusUpdateCalls(StatusProvider *other = nullptr); void forwardStatusUpdateCalls(StatusProvider *other = nullptr);
inline StatusProvider *usedProvider(); StatusProvider *usedProvider();
void tryToAbort(); void tryToAbort();
bool isAborted() const; bool isAborted() const;
void invalidateStatus(); void invalidateStatus();
@ -48,9 +48,9 @@ protected:
StatusProvider(); StatusProvider();
private: private:
inline void invokeCallbacks(); void invokeCallbacks();
inline void updateWorstNotificationType(NotificationType notificationType); void updateWorstNotificationType(NotificationType notificationType);
inline void transferNotifications(StatusProvider &from); void transferNotifications(StatusProvider &from);
NotificationList m_notifications; NotificationList m_notifications;
NotificationType m_worstNotificationType; 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 * the notifications are transfered. It also doesn't check whether \a from is the current instance and doesn't
* invoke callbacks. * invoke callbacks.
*/ */
void StatusProvider::transferNotifications(StatusProvider &from) inline void StatusProvider::transferNotifications(StatusProvider &from)
{ {
m_notifications.splice(m_notifications.end(), from.m_notifications); m_notifications.splice(m_notifications.end(), from.m_notifications);
m_worstNotificationType |= from.worstNotificationType(); m_worstNotificationType |= from.worstNotificationType();