[Libreoffice-commits] .: editeng/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Dec 11 01:12:30 PST 2012
editeng/source/misc/svxacorr.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 0efcfcdf40661dddd023d8b516d6461d164e4ab7
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Dec 11 09:12:03 2012 +0000
cppcheck: size() == 0 -> empty()
Change-Id: I23b6b8fdbb9c4f367a590a21e40e7bbaa76f7fce
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index aaee953..4bba278 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 )
More information about the Libreoffice-commits
mailing list