summaryrefslogtreecommitdiffstats
path: root/indexlib/leafdata.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-04-05 13:42:49 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-04-05 13:42:49 -0500
commitd53e057f92fb74a6655f33388d2ffcbc7954489d (patch)
tree58e08f26c5316b1b3f72003b7afc38956f609df6 /indexlib/leafdata.cpp
parent6b96e6cfbbd5637c59445f98f3cb31990533a1bf (diff)
downloadtdepim-d53e057f92fb74a6655f33388d2ffcbc7954489d.tar.gz
tdepim-d53e057f92fb74a6655f33388d2ffcbc7954489d.zip
Fix typos.
Diffstat (limited to 'indexlib/leafdata.cpp')
-rw-r--r--indexlib/leafdata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexlib/leafdata.cpp b/indexlib/leafdata.cpp
index 70773330a..db61119af 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<uint32_t>() ) ) return true;
+ if ( ( capacity() - usedbytes() ) > ( 1 + byte_io::byte_length<uint32_t>() ) ) 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<uint32_t>( target, ref );
- set_usedbytes( usedbytes() + 1 + byte_io::byte_lenght<uint32_t>() );
+ set_usedbytes( usedbytes() + 1 + byte_io::byte_length<uint32_t>() );
}
assert( usedbytes() <= capacity() );
}
@@ -123,7 +123,7 @@ void leaf_data::remove_reference( uint32_t ref ) {
else {
++iter;
byte_io::write<uint32_t>(iter,byte_io::read<uint32_t>(iter)-1);
- iter += byte_io::byte_lenght<uint32_t>();
+ iter += byte_io::byte_length<uint32_t>();
}
}
}