From 6783afe24d43a1bfd0b0239d3ebb97046177111d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Jun 2021 13:41:49 +0200 Subject: no need to allocate these on the heap Change-Id: Ie11353c8711e970cc20059227d8283c79e4b126d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116586 Tested-by: Jenkins Reviewed-by: Noel Grandin --- fpicker/source/office/fileview.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/office/fileview.cxx b/fpicker/source/office/fileview.cxx index 548b49c3cd1d..87d134c3edbd 100644 --- a/fpicker/source/office/fileview.cxx +++ b/fpicker/source/office/fileview.cxx @@ -1218,13 +1218,13 @@ FileViewResult SvtFileView_Impl::GetFolderContent_Impl( m_aCurrentAsyncActionHandler = Link(); // minimum time to wait - std::unique_ptr< TimeValue > pTimeout( new TimeValue ); + TimeValue aTimeout; sal_Int32 nMinTimeout = pAsyncDescriptor->nMinTimeout; OSL_ENSURE( nMinTimeout > 0, "SvtFileView_Impl::GetFolderContent_Impl: invalid minimum timeout!" ); if ( nMinTimeout <= 0 ) nMinTimeout = sal_Int32( 1000 ); - pTimeout->Seconds = nMinTimeout / 1000; - pTimeout->Nanosec = ( nMinTimeout % 1000 ) * 1000000; + aTimeout.Seconds = nMinTimeout / 1000; + aTimeout.Nanosec = ( nMinTimeout % 1000 ) * 1000000; m_xContentEnumerator->enumerateFolderContent( _rFolder, this ); @@ -1240,7 +1240,7 @@ FileViewResult SvtFileView_Impl::GetFolderContent_Impl( SolarMutexReleaser aSolarRelease; // now wait. Note that if we didn't get a pAsyncDescriptor, then this is an infinite wait. - eResult = m_aAsyncActionFinished.wait( pTimeout.get() ); + eResult = m_aAsyncActionFinished.wait( &aTimeout ); } ::osl::MutexGuard aGuard2( maMutex ); -- cgit