Use constexpr ctor to simplify TimeValue initialization

Change-Id: Ie2588659c3eb34faf8311c25644b59e363cee66b
Reviewed-on: https://gerrit.libreoffice.org/75254
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2019-07-09 00:01:02 +02:00
parent ec1a3d9dce
commit e22adfad19

View File

@ -72,16 +72,13 @@ void TickerThread::execute()
int nCount = nNth;
while ( !m_bFinish )
{
if ( nCount-- <= 0 )
if (--nCount < 0)
{
m_rLockStore.refreshLocks();
nCount = nNth;
}
TimeValue aTV;
aTV.Seconds = 0;
aTV.Nanosec = 1000000000 / nNth;
salhelper::Thread::wait( aTV );
salhelper::Thread::wait(TimeValue(0, 1000000000 / nNth));
}
SAL_INFO( "ucb.ucp.webdav", "TickerThread: stop." );