From cfffcbc39b2c6794eaeddae5134fb59848a76d41 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 15 Jun 2024 09:18:30 +0500 Subject: [PATCH] Simplify a bit Change-Id: Iae8af8904a445a523c1aecda6777ea4e2ce30598 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168900 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- filter/source/config/cache/typedetection.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx index 0f655cfa7709..4fb9ab482571 100644 --- a/filter/source/config/cache/typedetection.cxx +++ b/filter/source/config/cache/typedetection.cxx @@ -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; });