diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 21:10:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 22:04:31 +0000 |
commit | d22519f62bcd1325f1e7cc920a115b68fccd1922 (patch) | |
tree | 3b761a7f8c25f8f765c8d25662a803e47b5a7167 /unotools/source/config | |
parent | d44168795aed842d524e3a349962f2b98a8ac504 (diff) |
V801: Decreased performance
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
Diffstat (limited to 'unotools/source/config')
-rw-r--r-- | unotools/source/config/fontcfg.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx index 77d57a1cd431..e4a966170565 100644 --- a/unotools/source/config/fontcfg.cxx +++ b/unotools/source/config/fontcfg.cxx @@ -870,13 +870,13 @@ static const enum_convert pWidthNames[] = { "ultraexpanded", WIDTH_ULTRA_EXPANDED } }; -void FontSubstConfiguration::fillSubstVector( const com::sun::star::uno::Reference< XNameAccess > xFont, +void FontSubstConfiguration::fillSubstVector( const com::sun::star::uno::Reference< XNameAccess >& rFont, const OUString& rType, std::vector< OUString >& rSubstVector ) const { try { - Any aAny = xFont->getByName( rType ); + Any aAny = rFont->getByName( rType ); if( aAny.getValueTypeClass() == TypeClass_STRING ) { const OUString* pLine = (const OUString*)aAny.getValue(); @@ -919,13 +919,13 @@ void FontSubstConfiguration::fillSubstVector( const com::sun::star::uno::Referen } } -FontWeight FontSubstConfiguration::getSubstWeight( const com::sun::star::uno::Reference< XNameAccess > xFont, +FontWeight FontSubstConfiguration::getSubstWeight( const com::sun::star::uno::Reference< XNameAccess >& rFont, const OUString& rType ) const { int weight = -1; try { - Any aAny = xFont->getByName( rType ); + Any aAny = rFont->getByName( rType ); if( aAny.getValueTypeClass() == TypeClass_STRING ) { const OUString* pLine = (const OUString*)aAny.getValue(); @@ -951,13 +951,13 @@ FontWeight FontSubstConfiguration::getSubstWeight( const com::sun::star::uno::Re return (FontWeight)( weight >= 0 ? pWeightNames[weight].nEnum : WEIGHT_DONTKNOW ); } -FontWidth FontSubstConfiguration::getSubstWidth( const com::sun::star::uno::Reference< XNameAccess > xFont, +FontWidth FontSubstConfiguration::getSubstWidth( const com::sun::star::uno::Reference< XNameAccess >& rFont, const OUString& rType ) const { int width = -1; try { - Any aAny = xFont->getByName( rType ); + Any aAny = rFont->getByName( rType ); if( aAny.getValueTypeClass() == TypeClass_STRING ) { const OUString* pLine = (const OUString*)aAny.getValue(); @@ -983,13 +983,13 @@ FontWidth FontSubstConfiguration::getSubstWidth( const com::sun::star::uno::Refe return (FontWidth)( width >= 0 ? pWidthNames[width].nEnum : WIDTH_DONTKNOW ); } -unsigned long FontSubstConfiguration::getSubstType( const com::sun::star::uno::Reference< XNameAccess > xFont, +unsigned long FontSubstConfiguration::getSubstType( const com::sun::star::uno::Reference< XNameAccess >& rFont, const OUString& rType ) const { unsigned long type = 0; try { - Any aAny = xFont->getByName( rType ); + Any aAny = rFont->getByName( rType ); if( aAny.getValueTypeClass() == TypeClass_STRING ) { const OUString* pLine = (const OUString*)aAny.getValue(); |