[Libreoffice-bugs] [Bug 107037] online: Poco::Time* replacement with std::chrono

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat May 4 11:41:22 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=107037

--- Comment #2 from Shivansh <avihs.29 at gmail.com> ---
I would like to work on this bug.

(In reply to Michael Meeks from comment #0)
> LibreOffice Online uses a rather frankensteinish mix of Poco::Timestamp and
> std::chrono - we should move to using the latter consistently.
> 
> It would be good to move wsd/* first - since it doesn't use much Poco API
> anymore
I think I found most of the instances of Poco::Timestamp in wsd/* only. It
might make my work harder;).

> although it would be good to consider whether we need some
> convenience wrappers around std::chrono to make it somewhat less verbose -
> particularly the cast to milliseconds is very ugly.
Can you please elaborate. What do you mean by convinience wrapper here?

I think moving to std::chrono will take a lot of work. For e.g to move this
[1], we have std::chrono::time_point::time_since_epoch whose return type is
std::chrono::system_clock::duration, while the data type already being used is
std::time_t. So we will have to typecast or something.
Do we have to move all the present instances of Poco::Timestamp or are there
some restrictions?

Thank You.

[1] https://opengrok.libreoffice.org/xref/online/wsd/Auth.cpp#140

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190504/3bcf99be/attachment.html>


More information about the Libreoffice-bugs mailing list