diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-21 16:15:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-21 21:14:50 +0100 |
commit | 8cd01e5278b2be25a1186139e431591a85a5080f (patch) | |
tree | 527cdbc61161852e6477ce251e8f33a299c01ed5 /comphelper | |
parent | 33686f67da4bc640014cb51888fbf90f83375e97 (diff) |
allow passing if deep detection is wanted
which naturally requires the data to achieve
Change-Id: If23e7dbd009f3d8e60422ec4d485b459d5721c8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161135
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/mimeconfighelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx index 7f402b6351ec..317a6092af75 100644 --- a/comphelper/source/misc/mimeconfighelper.cxx +++ b/comphelper/source/misc/mimeconfighelper.cxx @@ -561,7 +561,7 @@ OUString MimeConfigurationHelper::GetFactoryNameByMediaType( const OUString& aMe OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName( uno::Sequence< beans::PropertyValue >& aMediaDescr, - bool bIgnoreType ) + bool bIgnoreType, bool bAllowDeepDetection ) { OUString aFilterName; @@ -581,7 +581,7 @@ OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName( uno::Sequence< beans::PropertyValue > aTempMD( aMediaDescr ); // get TypeName - OUString aTypeName = xTypeDetection->queryTypeByDescriptor( aTempMD, true ); + OUString aTypeName = xTypeDetection->queryTypeByDescriptor(aTempMD, bAllowDeepDetection); // get FilterName for ( const auto & prop : std::as_const(aTempMD) ) |