diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-01-26 16:31:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-01-26 16:36:09 +0100 |
commit | f1bca26afcc7593d0124c216c0400a9e2e47fc1d (patch) | |
tree | 37557f9a9afd815c4389ce7c4b3c47380829ef51 /accessibility | |
parent | 8e681942f771d7beae52b1e786fab16e6a653ab1 (diff) |
Remove redundant braces around for loops
...that had once been workarounds for compilers that did not yet support the
C++98 scoping rules for declarations in for-init-statements.
Change-Id: I51dc42982b30bf3adea6de1a10a91c0b4b4acfbe
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/textwindowaccessibility.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index 6691856c5f92..f27fc8f00124 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1725,8 +1725,9 @@ void Document::notifyVisibleRangeChanges( { // XXX Replace this code that determines which paragraphs have changed from // invisible to visible or vice versa with a better algorithm. - {for (Paragraphs::iterator aIt(rOldVisibleBegin); aIt != rOldVisibleEnd; - ++aIt) + for (Paragraphs::iterator aIt(rOldVisibleBegin); aIt != rOldVisibleEnd; + ++aIt) + { if (aIt != rInserted && (aIt < m_aVisibleBegin || aIt >= m_aVisibleEnd)) NotifyAccessibleEvent( @@ -1735,8 +1736,9 @@ void Document::notifyVisibleRangeChanges( ::css::uno::makeAny(getAccessibleChild(aIt)), ::css::uno::Any()); } - {for (Paragraphs::iterator aIt(m_aVisibleBegin); aIt != m_aVisibleEnd; - ++aIt) + for (Paragraphs::iterator aIt(m_aVisibleBegin); aIt != m_aVisibleEnd; + ++aIt) + { if (aIt == rInserted || aIt < rOldVisibleBegin || aIt >= rOldVisibleEnd) NotifyAccessibleEvent( @@ -1829,8 +1831,9 @@ void Document::handleParagraphNotifications() ::sal_uLong n = aHint.GetValue(); if (n == TEXT_PARA_ALL) { - {for (Paragraphs::iterator aIt(m_aVisibleBegin); - aIt != m_aVisibleEnd; ++aIt) + for (Paragraphs::iterator aIt(m_aVisibleBegin); + aIt != m_aVisibleEnd; ++aIt) + { NotifyAccessibleEvent( ::css::accessibility::AccessibleEventId:: CHILD, |