Ver Fonte

AK: NonnullRefPtrVector should use Vector<T, inline_capacity> as its base.

We were forgetting to plumb through the inline capacity in the Base typedef.
Andreas Kling há 6 anos atrás
pai
commit
3bd47a2e09
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      AK/NonnullRefPtrVector.h

+ 1 - 1
AK/NonnullRefPtrVector.h

@@ -7,7 +7,7 @@ namespace AK {
 
 
 template<typename T, int inline_capacity = 0>
 template<typename T, int inline_capacity = 0>
 class NonnullRefPtrVector : public Vector<NonnullRefPtr<T>, inline_capacity> {
 class NonnullRefPtrVector : public Vector<NonnullRefPtr<T>, inline_capacity> {
-    typedef Vector<NonnullRefPtr<T>> Base;
+    typedef Vector<NonnullRefPtr<T>, inline_capacity> Base;
 
 
 public:
 public:
     NonnullRefPtrVector()
     NonnullRefPtrVector()