diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-12-11 09:12:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-12-11 09:12:03 +0000 |
commit | 0efcfcdf40661dddd023d8b516d6461d164e4ab7 (patch) | |
tree | f3a4fe354a9e975f555339bb6ed5e92327978bc1 /editeng/source/misc | |
parent | 621b0f29b1fee2ebb318bbaed51d64d67b2fcddc (diff) |
cppcheck: size() == 0 -> empty()
Change-Id: I23b6b8fdbb9c4f367a590a21e40e7bbaa76f7fce
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index aaee9533c603..4bba27869aaf 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2669,7 +2669,7 @@ void SvxAutocorrWordList::DeleteAndDestroyAll() // returns true if inserted bool SvxAutocorrWordList::Insert(SvxAutocorrWord *pWord) { - if ( maSet.size() == 0 ) // use the hash + if ( maSet.empty() ) // use the hash { rtl::OUString aShort( pWord->GetShort() ); bool bThere = maHash.find( aShort ) != maHash.end(); @@ -2697,7 +2697,7 @@ SvxAutocorrWord *SvxAutocorrWordList::FindAndRemove(SvxAutocorrWord *pWord) { SvxAutocorrWord *pMatch = NULL; - if ( maSet.size() == 0 ) // use the hash + if ( maSet.empty() ) // use the hash { SvxAutocorrWordList_Hash::iterator it = maHash.find( pWord->GetShort() ); if( it != maHash.end() ) @@ -2724,7 +2724,7 @@ SvxAutocorrWordList::Content SvxAutocorrWordList::getSortedContent() const Content aContent; // convert from hash to set permanantly - if ( maSet.size() == 0 ) + if ( maSet.empty() ) { // This beasty has some O(N log(N)) in a terribly slow ICU collate fn. for( SvxAutocorrWordList_Hash::const_iterator it = maHash.begin(); it != maHash.end(); ++it ) |