summaryrefslogtreecommitdiff
path: root/linguistic/source/iprcache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic/source/iprcache.cxx')
-rw-r--r--linguistic/source/iprcache.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx
index e5b38c0eb183..fbcbb446b25d 100644
--- a/linguistic/source/iprcache.cxx
+++ b/linguistic/source/iprcache.cxx
@@ -63,10 +63,10 @@ static void lcl_AddAsPropertyChangeListener(
{
if (xListener.is() && rPropSet.is())
{
- for (int i = 0; i < NUM_FLUSH_PROPS; ++i)
+ for (auto& aFlushPropertie : aFlushProperties)
{
rPropSet->addPropertyChangeListener(
- OUString::createFromAscii(aFlushProperties[i].pPropName), xListener );
+ OUString::createFromAscii(aFlushPropertie.pPropName), xListener );
}
}
}
@@ -78,10 +78,10 @@ static void lcl_RemoveAsPropertyChangeListener(
{
if (xListener.is() && rPropSet.is())
{
- for (int i = 0; i < NUM_FLUSH_PROPS; ++i)
+ for (auto& aFlushPropertie : aFlushProperties)
{
rPropSet->removePropertyChangeListener(
- OUString::createFromAscii(aFlushProperties[i].pPropName), xListener );
+ OUString::createFromAscii(aFlushPropertie.pPropName), xListener );
}
}
}