summaryrefslogtreecommitdiff
path: root/helpcompiler/source/HelpCompiler.cxx
diff options
context:
space:
mode:
authorGurkaran <gurkran@gmail.com>2016-03-22 03:25:02 +0530
committerNoel Grandin <noelgrandin@gmail.com>2016-03-22 06:54:08 +0000
commit9e7447d39e356857ef5786b513e99cee79385247 (patch)
tree12ab8cf850a2af5053959def004db5c463237008 /helpcompiler/source/HelpCompiler.cxx
parent7f36f4ce9f9f3d430009ba472d275d038abecb16 (diff)
tdf#84323: Make osl::Thread::wait more readable
It is to improve the readability of calls to osl::Thread::wait. Change-Id: I025d89abf8e84ca73ba08f001be3f45b86c89957 Signed-off-by: Gurkaran <gurkran@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/23416 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'helpcompiler/source/HelpCompiler.cxx')
-rw-r--r--helpcompiler/source/HelpCompiler.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx
index 2a127fe2bb44..c25b69bc1933 100644
--- a/helpcompiler/source/HelpCompiler.cxx
+++ b/helpcompiler/source/HelpCompiler.cxx
@@ -28,14 +28,11 @@
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
#include <osl/thread.hxx>
+#include <chrono>
static void impl_sleep( sal_uInt32 nSec )
{
- TimeValue aTime;
- aTime.Seconds = nSec;
- aTime.Nanosec = 0;
-
- osl::Thread::wait( aTime );
+ osl::Thread::wait( std::chrono::seconds(nSec) );
}
HelpCompiler::HelpCompiler(StreamTable &in_streamTable, const fs::path &in_inputFile,
const fs::path &in_src, const fs::path &in_zipdir, const fs::path &in_resCompactStylesheet,