[Libreoffice-commits] .: editeng/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Apr 28 13:58:04 PDT 2012


 editeng/source/editeng/impedit4.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 953ba47e75a449c464b4ca488073360cf622553d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Apr 28 22:56:44 2012 +0200

    Some cppcheck cleaning
    
    Change-Id: Idf2e6e3e2870429541b3b5c225470cc80a13c102

diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 7316d7e..f2373fa 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2160,7 +2160,7 @@ void ImpEditEngine::ApplyChangedSentence(EditView& rEditView,
         }
         else
         {
-            DBG_ASSERT( pSpellInfo->aLastSpellContentSelections.size() > 0, "aLastSpellContentSelections should not be empty here" );
+            DBG_ASSERT( !pSpellInfo->aLastSpellContentSelections.empty(), "aLastSpellContentSelections should not be empty here" );
 
             //select the complete sentence
             SpellContentSelections::const_iterator aCurrentEndPosition = pSpellInfo->aLastSpellContentSelections.end();
@@ -2217,7 +2217,7 @@ void ImpEditEngine::ApplyChangedSentence(EditView& rEditView,
 
 void ImpEditEngine::PutSpellingToSentenceStart( EditView& rEditView )
 {
-    if( pSpellInfo && pSpellInfo->aLastSpellContentSelections.size() )
+    if( pSpellInfo && !pSpellInfo->aLastSpellContentSelections.empty() )
     {
         rEditView.pImpEditView->SetEditSelection( pSpellInfo->aLastSpellContentSelections.begin()->Min() );
     }


More information about the Libreoffice-commits mailing list