diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-14 14:47:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-14 15:44:42 +0200 |
commit | e6b8be25a6fb5afbd1649489318a7a2d7ae62efa (patch) | |
tree | 4777f3d63cd8b849b9ac32af3fe6def00749a407 /filter/source/graphic | |
parent | a60b18a8c5d5c11c87dbbaaf884de138dfeb6c8f (diff) |
loplugin:flatten in filter
Change-Id: I24861f7401c0046962d536950fe8b2b6bdbad969
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92186
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/graphic')
-rw-r--r-- | filter/source/graphic/GraphicExportFilter.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/filter/source/graphic/GraphicExportFilter.cxx b/filter/source/graphic/GraphicExportFilter.cxx index f2d0abbb33dc..b7123363ddd2 100644 --- a/filter/source/graphic/GraphicExportFilter.cxx +++ b/filter/source/graphic/GraphicExportFilter.cxx @@ -86,22 +86,22 @@ void GraphicExportFilter::gatherProperties( const uno::Sequence< beans::Property } } - if ( !aInternalFilterName.isEmpty() ) - { - GraphicFilter aGraphicFilter( true ); + if ( aInternalFilterName.isEmpty() ) + return; - sal_uInt16 nFilterCount = aGraphicFilter.GetExportFormatCount(); - sal_uInt16 nFormat; + GraphicFilter aGraphicFilter( true ); - for ( nFormat = 0; nFormat < nFilterCount; nFormat++ ) - { - if ( aGraphicFilter.GetExportInternalFilterName( nFormat ) == aInternalFilterName ) - break; - } - if ( nFormat < nFilterCount ) - { - maFilterExtension = aGraphicFilter.GetExportFormatShortName( nFormat ); - } + sal_uInt16 nFilterCount = aGraphicFilter.GetExportFormatCount(); + sal_uInt16 nFormat; + + for ( nFormat = 0; nFormat < nFilterCount; nFormat++ ) + { + if ( aGraphicFilter.GetExportInternalFilterName( nFormat ) == aInternalFilterName ) + break; + } + if ( nFormat < nFilterCount ) + { + maFilterExtension = aGraphicFilter.GetExportFormatShortName( nFormat ); } } |