summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-11 11:02:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-11 15:16:45 +0200
commit9d450875c8a0bea2468f65c7a57b9ff77344b6c8 (patch)
treea8198e0c7328007827cc800c244625c203fe6947 /filter
parentb03aa654eb2e2980f3efc0347b1435414d8f1d09 (diff)
only instantiate SfxFilterMatcher when we need it
Change-Id: Ibb6162ddc6bec73beef6fffc8cf53976dc82313a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134156 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index f7b8c0aea1e2..daf047007b49 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -7144,14 +7144,16 @@ css::uno::Reference < css::embed::XEmbeddedObject > SvxMSDffManager::CheckForCo
}
else
{
- SfxFilterMatcher aMatch( sStarName );
tools::SvRef<SotStorage> xStorage = new SotStorage( false, aMemStream );
rSrcStg.CopyTo( xStorage.get() );
xStorage->Commit();
xStorage.clear();
OUString aType = SfxFilter::GetTypeFromStorage( rSrcStg );
if (aType.getLength() && !utl::ConfigManager::IsFuzzing())
+ {
+ SfxFilterMatcher aMatch( sStarName );
pFilter = aMatch.GetFilter4EA( aType );
+ }
}
#ifdef DEBUG_FILTER_MSFILTER