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:
parent
6b3712dc00
commit
cfffcbc39b
1 changed files with 1 additions and 1 deletions
2
filter/source/config/cache/typedetection.cxx
vendored
2
filter/source/config/cache/typedetection.cxx
vendored
|
@ -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; });
|
||||
|
|
Loading…
Reference in a new issue