diff --git a/base/buffer_vector.hpp b/base/buffer_vector.hpp index 2da0a75347..d9d664041c 100644 --- a/base/buffer_vector.hpp +++ b/base/buffer_vector.hpp @@ -224,10 +224,7 @@ public: T const * data() const { if (IsDynamic()) - { - ASSERT(!m_dynamic.empty(), ()); - return &m_dynamic[0]; - } + return m_dynamic.data(); return &m_static[0]; } @@ -235,10 +232,7 @@ public: T * data() { if (IsDynamic()) - { - ASSERT(!m_dynamic.empty(), ()); - return &m_dynamic[0]; - } + return m_dynamic.data(); return &m_static[0]; }