diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-12-16 01:50:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-12-16 01:50:36 +0000 |
commit | d4b702756e673463c9fc008bc6e5931aac6a9011 (patch) | |
tree | 56d925d93b2b1468fdcf6b55fbdd5bad008f74c6 /indexlib/memvector.tcc | |
parent | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (diff) | |
download | tdepim-d4b702756e673463c9fc008bc6e5931aac6a9011.tar.gz tdepim-d4b702756e673463c9fc008bc6e5931aac6a9011.zip |
* gcc4.4 compilation fixes
* kmail crash issues resolved
* automake updates
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1062791 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'indexlib/memvector.tcc')
-rw-r--r-- | indexlib/memvector.tcc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indexlib/memvector.tcc b/indexlib/memvector.tcc index ef45c2b5f..792c389c3 100644 --- a/indexlib/memvector.tcc +++ b/indexlib/memvector.tcc @@ -30,13 +30,13 @@ template <typename T> void memvector<T>::resize( size_type n_s ) { if ( size() >= n_s ) return; - data_->resize( n_s * byte_io::byte_lenght<value_type>() + byte_io::byte_lenght<unsigned>() ); + using namespace byte_io; + data_->resize( n_s * byte_lenght<value_type>() + byte_lenght<unsigned>() ); iterator p_end = end(); - byte_io::write<unsigned>( data_->rw_base( 0 ), n_s ); - while ( operator !=<unsigned, unsigned>(p_end, end()) ) { + write<unsigned>( data_->rw_base( 0 ), n_s ); + while ( p_end != end() ) { *p_end = value_type(); ++p_end; - } } |