1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

bytevector: rename the argument to operator[] to be more descriptive

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2024-12-03 22:58:15 -05:00
parent b9abcceacb
commit 21cedfb13e

View File

@ -44,10 +44,10 @@ namespace crucible {
} }
ByteVector::value_type& ByteVector::value_type&
ByteVector::operator[](size_t size) const ByteVector::operator[](size_t index) const
{ {
unique_lock<mutex> lock(m_mutex); unique_lock<mutex> lock(m_mutex);
return m_ptr.get()[size]; return m_ptr.get()[index];
} }
ByteVector::ByteVector(const ByteVector &that) ByteVector::ByteVector(const ByteVector &that)