From b47ec1512284582dfd4a5a35c40c16fbf11e0d67 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sun, 24 Mar 2019 21:00:40 -0700 Subject: utils: Change UHD_INLINE to inline in dirty_tracked.hpp This avoids having to include config.hpp. Also, the UHD_INLINE should be avoided in favour of either inline, or UHD_FORCE_INLINE. --- host/include/uhd/utils/dirty_tracked.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/host/include/uhd/utils/dirty_tracked.hpp b/host/include/uhd/utils/dirty_tracked.hpp index 8fb390a8b..3a3397f38 100644 --- a/host/include/uhd/utils/dirty_tracked.hpp +++ b/host/include/uhd/utils/dirty_tracked.hpp @@ -55,7 +55,7 @@ public: /*! * Get underlying data */ - UHD_INLINE const data_t& get() const + inline const data_t& get() const { return _data; } @@ -64,7 +64,7 @@ public: * Has the underlying data changed since the last * time it was cleaned? */ - UHD_INLINE bool is_dirty() const + inline bool is_dirty() const { return _dirty; } @@ -72,7 +72,7 @@ public: /*! * Mark the underlying data as clean */ - UHD_INLINE void mark_clean() + inline void mark_clean() { _dirty = false; } @@ -80,7 +80,7 @@ public: /*! * Mark the underlying data as dirty */ - UHD_INLINE void force_dirty() + inline void force_dirty() { _dirty = true; } @@ -90,7 +90,7 @@ public: * Store the specified value and mark it as dirty * if it is not equal to the underlying data. */ - UHD_INLINE dirty_tracked& operator=(const data_t& value) + inline dirty_tracked& operator=(const data_t& value) { if (!(_data == value)) { // data_t must have an equality operator _dirty = true; @@ -106,7 +106,7 @@ public: * This exists to optimize out an implicit cast from dirty_tracked * type to data type. */ - UHD_INLINE dirty_tracked& operator=(const dirty_tracked& source) + inline dirty_tracked& operator=(const dirty_tracked& source) { if (!(_data == source._data)) { _dirty = true; @@ -118,7 +118,7 @@ public: /*! * Explicit conversion from this type to data_t */ - UHD_INLINE operator const data_t&() const + inline operator const data_t&() const { return get(); } -- cgit v1.2.3