summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-03-31 09:06:06 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-04-06 22:12:47 +0200
commit060d2e0e997c603a341e29eeac7f4fa3032f056a (patch)
tree09cc49277f45c1f200598cb47e8646cba1ac3659 /sw
parentde13902e517e9705a6156387433138eacd3ab75d (diff)
Remove redundant loop condition, to break is enough
Change-Id: Ia02e8483437fd7bd4db6fd9d74d11f6eb10952bc
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/envelp/label1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index fdc22379e668..ccbda4de8eac 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -666,7 +666,7 @@ void SwVisitingCardPage::Reset(const SfxItemSet& rSet)
bool bFound = false;
sal_Int32 i;
- for(i = 0; i < m_pAutoTextGroupLB->GetEntryCount() && !bFound; i++)
+ for(i = 0; i < m_pAutoTextGroupLB->GetEntryCount(); i++)
if( aLabItem.sGlossaryGroup == *(const OUString*)m_pAutoTextGroupLB->GetEntryData( i ))
{
bFound = true;
@@ -677,7 +677,7 @@ void SwVisitingCardPage::Reset(const SfxItemSet& rSet)
{
// initially search for a group starting with "crd" which is the name of the
// business card AutoTexts
- for(i = 0; i < m_pAutoTextGroupLB->GetEntryCount() && !bFound; i++)
+ for(i = 0; i < m_pAutoTextGroupLB->GetEntryCount(); i++)
if (((const OUString*)m_pAutoTextGroupLB->GetEntryData(i))->startsWith("crd"))
{
bFound = true;