Simplify a bit

Change-Id: Iae8af8904a445a523c1aecda6777ea4e2ce30598
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168900
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2024-06-15 09:18:30 +05:00
parent 6b3712dc00
commit cfffcbc39b

View file

@ -928,7 +928,7 @@ OUString TypeDetection::impl_detectTypeFlatAndDeep( utl::MediaDescriptor& r
{
// tdf#161573: do not interact with the user about possible unrelated failures (e.g.,
// missing file). If needed, that will happen later, in the main detection phase.
auto aInteraction(rDescriptor.getValue(utl::MediaDescriptor::PROP_INTERACTIONHANDLER));
auto aInteraction(rDescriptor[utl::MediaDescriptor::PROP_INTERACTIONHANDLER]);
rDescriptor.erase(utl::MediaDescriptor::PROP_INTERACTIONHANDLER);
comphelper::ScopeGuard interactionHelperGuard([&rDescriptor, &aInteraction]
{ rDescriptor[utl::MediaDescriptor::PROP_INTERACTIONHANDLER] = aInteraction; });