aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-05 19:23:13 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-05 19:23:13 +0900
commitda975f68f6a8503bf5466292dcdceed8c6f7fa6f (patch)
treeb618dd33178babbe7b9bf9fa7a85e3ad743424e2
parentc0bd6c511b54eb9154e8f42427a62f5ac202cb4a (diff)
downloadlibquotient-da975f68f6a8503bf5466292dcdceed8c6f7fa6f.tar.gz
libquotient-da975f68f6a8503bf5466292dcdceed8c6f7fa6f.zip
Initialize more properly to fix a warning
-rw-r--r--jobs/basejob.cpp4
1 files 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<int, 4> timeouts = { 90, 90, 120, 120 };
+ static const std::array<int, 4> 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<int, 3> intervals = { 5, 10, 30 };
+ static const std::array<int, 3> intervals ({ 5, 10, 30 });
return intervals[std::min(d->retriesTaken, intervals.size() - 1)] * 1000;
}