summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-01 13:41:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-02 18:23:45 +0200
commit6783afe24d43a1bfd0b0239d3ebb97046177111d (patch)
tree03c717a9a6353bafb2fe2b278a307fddf75f494f /fpicker
parent3d9bf9eea5803184da8e5e11477b6eb2f55aff3f (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/fileview.cxx8
1 files changed, 4 insertions, 4 deletions
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<void*,void>();
// 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 );