diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-01-21 19:57:19 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-01-21 19:58:46 +0100 |
commit | 22da27d9ddcdacaef21d667b0777052b7e817b9a (patch) | |
tree | e72e427eb7b6934b796179ed3e49ca4a8c8734a6 /cui/source/dialogs/SpellDialog.cxx | |
parent | cfc2f1919f8cf856c0c884dac7e4eb83bece4a7f (diff) |
Improve checking for emptiness
Diffstat (limited to 'cui/source/dialogs/SpellDialog.cxx')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 2f66b410919e..a336a4b89658 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -1181,7 +1181,7 @@ bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence, bool bRecheck) if(!bUseSavedSentence) m_aSavedSentence = aSentence; bool bHasReplaced = false; - while(aSentence.size()) + while(!aSentence.empty()) { //apply all changes that are already part of the "ChangeAllList" //returns true if the list still contains errors after the changes have been applied @@ -1195,7 +1195,7 @@ bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence, bool bRecheck) break; } - if(aSentence.size()) + if(!aSentence.empty()) { SpellPortions::iterator aStart = aSentence.begin(); rtl::OUString sText; |