Animations : no need to use the global mutex here

Change-Id: Ia63a570efdd15c60fc31d978a23e76102e466745
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137141
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Arnaud VERSINI 2022-07-16 20:30:15 +02:00 committed by Noel Grandin
parent 946d038c71
commit 2fffe41501

View file

@ -745,7 +745,9 @@ Any SAL_CALL AnimationNode::queryInterface( const Type& aType )
void AnimationNode::initTypeProvider( sal_Int16 nNodeType ) noexcept
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
static std::mutex aMutex;
std::scoped_lock aGuard(aMutex);
if( mpTypes[nNodeType] )
return;