Forráskód Böngészése

AK: Always inline the RefCountedBase functions

Andreas Kling 3 éve
szülő
commit
77f72c7cfe
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      AK/RefCounted.h

+ 2 - 2
AK/RefCounted.h

@@ -50,7 +50,7 @@ public:
     using RefCountType = unsigned int;
     using AllowOwnPtr = FalseType;
 
-    void ref() const
+    ALWAYS_INLINE void ref() const
     {
         VERIFY(m_ref_count > 0);
         VERIFY(!Checked<RefCountType>::addition_would_overflow(m_ref_count, 1));
@@ -71,7 +71,7 @@ protected:
     RefCountedBase() = default;
     ~RefCountedBase() { VERIFY(!m_ref_count); }
 
-    RefCountType deref_base() const
+    ALWAYS_INLINE RefCountType deref_base() const
     {
         VERIFY(m_ref_count);
         return --m_ref_count;