summaryrefslogtreecommitdiff
path: root/unotools/source/config/fontcfg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 15:21:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-16 08:11:27 +0200
commita0073744aac89648e89506b79e227b17dacf58d0 (patch)
treed40b1c631884a0ce4428be716f550b12921ab21e /unotools/source/config/fontcfg.cxx
parent61e02561aa659d829a6786609fc57d99fd8652b4 (diff)
loplugin:sequenceloop in ucb..unotools
Change-Id: Ie52d993c185ba43386b494baad0a484d5b365499 Reviewed-on: https://gerrit.libreoffice.org/77532 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/config/fontcfg.cxx')
-rw-r--r--unotools/source/config/fontcfg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index 2b1d3f24fb1f..bd7f7e21330b 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -117,7 +117,7 @@ DefaultFontConfiguration::DefaultFontConfiguration()
UNO_QUERY );
if( m_xConfigAccess.is() )
{
- Sequence< OUString > aLocales = m_xConfigAccess->getElementNames();
+ const Sequence< OUString > aLocales = m_xConfigAccess->getElementNames();
// fill config hash with empty interfaces
for( const OUString& rLocaleString : aLocales )
{
@@ -331,7 +331,7 @@ FontSubstConfiguration::FontSubstConfiguration() :
UNO_QUERY );
if( m_xConfigAccess.is() )
{
- Sequence< OUString > aLocales = m_xConfigAccess->getElementNames();
+ const Sequence< OUString > aLocales = m_xConfigAccess->getElementNames();
// fill config hash with empty interfaces
for( const OUString& rLocaleString : aLocales )
{
@@ -973,7 +973,7 @@ void FontSubstConfiguration::readLocaleSubst( const OUString& rBcp47 ) const
}
if( xNode.is() )
{
- Sequence< OUString > aFonts = xNode->getElementNames();
+ const Sequence< OUString > aFonts = xNode->getElementNames();
int nFonts = aFonts.getLength();
// improve performance, heap fragmentation
it->second.aSubstAttributes.reserve( nFonts );