From d53e057f92fb74a6655f33388d2ffcbc7954489d Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Thu, 5 Apr 2012 13:42:49 -0500 Subject: Fix typos. --- indexlib/leafdata.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indexlib/leafdata.cpp') diff --git a/indexlib/leafdata.cpp b/indexlib/leafdata.cpp index 70773330..db61119a 100644 --- a/indexlib/leafdata.cpp +++ b/indexlib/leafdata.cpp @@ -50,7 +50,7 @@ uint32_t leaf_data::get_reference( unsigned idx ) const { } bool leaf_data::can_add( uint32_t ref ) const { - if ( ( capacity() - usedbytes() ) > ( 1 + byte_io::byte_lenght() ) ) return true; + if ( ( capacity() - usedbytes() ) > ( 1 + byte_io::byte_length() ) ) return true; if ( capacity() == usedbytes() ) return false; uint32_t last = 0; for ( iterator first = begin(), past = end(); first != past; ++first ) { @@ -97,7 +97,7 @@ void leaf_data::add_reference( uint32_t ref ) { } else { *target++ = 0; byte_io::write( target, ref ); - set_usedbytes( usedbytes() + 1 + byte_io::byte_lenght() ); + set_usedbytes( usedbytes() + 1 + byte_io::byte_length() ); } assert( usedbytes() <= capacity() ); } @@ -123,7 +123,7 @@ void leaf_data::remove_reference( uint32_t ref ) { else { ++iter; byte_io::write(iter,byte_io::read(iter)-1); - iter += byte_io::byte_lenght(); + iter += byte_io::byte_length(); } } } -- cgit v1.2.3