diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-12-14 14:00:55 -0500 |
---|---|---|
committer | Ashod Nakashian <Ashod@users.noreply.github.com> | 2020-12-22 11:24:13 -0500 |
commit | 13d7d23cbedda4a8e02b0c6f88dd13bca947fd1f (patch) | |
tree | a75d3494658e18622e0b3e026ffd5b8d6353976c /wsd/Storage.hpp | |
parent | wsd: logs and const (diff) | |
download | online-13d7d23cbedda4a8e02b0c6f88dd13bca947fd1f.tar.gz online-13d7d23cbedda4a8e02b0c6f88dd13bca947fd1f.zip |
wsd: use chrono for readability and conversion safety
Change-Id: If5d478605fef0199b331d91310673a460e70d48e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Diffstat (limited to 'wsd/Storage.hpp')
-rw-r--r-- | wsd/Storage.hpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/wsd/Storage.hpp b/wsd/Storage.hpp index 7b636bd391..1baea46a50 100644 --- a/wsd/Storage.hpp +++ b/wsd/Storage.hpp @@ -370,13 +370,12 @@ private: class WopiStorage : public StorageBase { public: - WopiStorage(const Poco::URI& uri, - const std::string& localStorePath, - const std::string& jailPath) : - StorageBase(uri, localStorePath, jailPath), - _wopiLoadDuration(0), - _wopiSaveDuration(0), - _reuseCookies(false) + WopiStorage(const Poco::URI& uri, const std::string& localStorePath, + const std::string& jailPath) + : StorageBase(uri, localStorePath, jailPath) + , _wopiLoadDuration(std::chrono::milliseconds::zero()) + , _wopiSaveDuration(std::chrono::milliseconds::zero()) + , _reuseCookies(false) { const auto& app = Poco::Util::Application::instance(); _reuseCookies = app.config().getBool("storage.wopi.reuse_cookies", false); |