diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-07-09 00:01:02 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-07-09 01:14:24 +0200 |
commit | e22adfad195c22e98a47fd09c439ec96da247488 (patch) | |
tree | 23c39fdebb47a76ee883660c3865770c2147ff10 | |
parent | ec1a3d9dcefd619a1dba3de3903efaf32fff4cdc (diff) |
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>
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonLockStore.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonLockStore.cxx b/ucb/source/ucp/webdav-neon/NeonLockStore.cxx index 8ac218915a4d..a4d25b4b1e31 100644 --- a/ucb/source/ucp/webdav-neon/NeonLockStore.cxx +++ b/ucb/source/ucp/webdav-neon/NeonLockStore.cxx @@ -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." ); |