From da975f68f6a8503bf5466292dcdceed8c6f7fa6f Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 5 Sep 2017 19:23:13 +0900 Subject: Initialize more properly to fix a warning --- jobs/basejob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp index 26ceb268..157ac034 100644 --- a/jobs/basejob.cpp +++ b/jobs/basejob.cpp @@ -263,13 +263,13 @@ void BaseJob::finishJob() BaseJob::duration_t BaseJob::getCurrentTimeout() const { - static const std::array timeouts = { 90, 90, 120, 120 }; + static const std::array timeouts ({ 90, 90, 120, 120 }); return timeouts[std::min(d->retriesTaken, timeouts.size() - 1)] * 1000; } BaseJob::duration_t BaseJob::getNextRetryInterval() const { - static const std::array intervals = { 5, 10, 30 }; + static const std::array intervals ({ 5, 10, 30 }); return intervals[std::min(d->retriesTaken, intervals.size() - 1)] * 1000; } -- cgit v1.2.3