From 77eaa51bc47ff6b02f319053d4ca5aaf37b28f37 Mon Sep 17 00:00:00 2001 From: Mariusz Dykierek Date: Thu, 16 Feb 2012 12:20:09 +0000 Subject: possible inefficient checking for emptiness --- linguistic/source/dlistimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linguistic/source/dlistimp.cxx') diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index e82488887c0c..316d86ddcc92 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -608,7 +608,7 @@ void SAL_CALL pDicEvtLstnrHelper->DisposeAndClear( aEvtObj ); //! avoid creation of dictionaries if not already done - if (aDicList.size() > 0) + if ( !aDicList.empty() ) { DictionaryVec_t& rDicList = GetOrCreateDicList(); size_t nCount = rDicList.size(); @@ -720,7 +720,7 @@ void DicList::SaveDics() { // save dics only if they have already been used/created. //! don't create them just for the purpose of saving them ! - if (aDicList.size() > 0) + if ( !aDicList.empty() ) { // save (modified) dictionaries DictionaryVec_t& rDicList = GetOrCreateDicList(); -- cgit