summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-04-28 22:56:44 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-04-28 22:57:30 +0200
commit953ba47e75a449c464b4ca488073360cf622553d (patch)
tree67a773b725724a76dc88674436647c6f755bf147 /editeng
parentddc7bf61113328feb05252f57a4286574c69e521 (diff)
Some cppcheck cleaning
Change-Id: Idf2e6e3e2870429541b3b5c225470cc80a13c102
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit4.cxx4
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() );
}