[Bf-blender-cvs] [72a05f9f4f1] functions: remove unnecessary inline keywords

Jacques Lucke noreply at git.blender.org
Tue Sep 10 17:12:46 CEST 2019


Commit: 72a05f9f4f1095992e5bde6151225587840049b8
Author: Jacques Lucke
Date:   Tue Sep 10 16:14:48 2019 +0200
Branches: functions
https://developer.blender.org/rB72a05f9f4f1095992e5bde6151225587840049b8

remove unnecessary inline keywords

===================================================================

M	source/blender/blenlib/BLI_refcount.hpp
M	source/blender/blenlib/BLI_vector.hpp

===================================================================

diff --git a/source/blender/blenlib/BLI_refcount.hpp b/source/blender/blenlib/BLI_refcount.hpp
index b970bbcbb63..c2db57fa82f 100644
--- a/source/blender/blenlib/BLI_refcount.hpp
+++ b/source/blender/blenlib/BLI_refcount.hpp
@@ -83,14 +83,14 @@ template<typename T> class AutoRefCount {
  private:
   T *m_object;
 
-  inline void incref()
+  void incref()
   {
     if (m_object) {
       m_object->incref();
     }
   }
 
-  inline void decref()
+  void decref()
   {
     if (m_object) {
       m_object->decref();
diff --git a/source/blender/blenlib/BLI_vector.hpp b/source/blender/blenlib/BLI_vector.hpp
index 1d3f10b635f..6d12767da5c 100644
--- a/source/blender/blenlib/BLI_vector.hpp
+++ b/source/blender/blenlib/BLI_vector.hpp
@@ -511,7 +511,7 @@ template<typename T, uint N = 4, typename Allocator = GuardedAllocator> class Ve
     return m_begin == this->small_buffer();
   }
 
-  inline void ensure_space_for_one()
+  void ensure_space_for_one()
   {
     if (UNLIKELY(m_end >= m_capacity_end)) {
       this->grow(std::max(this->size() * 2, (uint)1));



More information about the Bf-blender-cvs mailing list