diff options
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 7316d7ef6598..f2373fa9828e 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() ); } |