]> git.hungrycats.org Git - bees/commitdiff
bytevector: rename the argument to operator[] to be more descriptive
authorZygo Blaxell <bees@furryterror.org>
Wed, 4 Dec 2024 03:58:15 +0000 (22:58 -0500)
committerZygo Blaxell <bees@furryterror.org>
Fri, 13 Dec 2024 04:10:15 +0000 (23:10 -0500)
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
lib/bytevector.cc

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