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:
+1
-1
@@ -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; });
|
||||
|
||||
Reference in New Issue
Block a user