editeng/source/editeng/impedit4.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 953ba47e75a449c464b4ca488073360cf622553d Author: Julien Nabet <serval2...@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() ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits