mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-29 19:18:42 -07:00
Make use of chrono literals from std library
This commit is contained in:
parent
2a5dbe840c
commit
6de72ecc77
17 changed files with 57 additions and 32 deletions
|
@ -267,7 +267,7 @@ quint64 SpeedPlotView::maxYValue() const
|
|||
if (!m_properties[static_cast<GraphID>(id)].enable)
|
||||
continue;
|
||||
|
||||
milliseconds duration {0ms};
|
||||
milliseconds duration {0};
|
||||
for (int i = static_cast<int>(queue.size()) - 1; i >= 0; --i)
|
||||
{
|
||||
maxYValue = std::max(maxYValue, queue[i].data[id]);
|
||||
|
@ -360,7 +360,7 @@ void SpeedPlotView::paintEvent(QPaintEvent *)
|
|||
continue;
|
||||
|
||||
QVector<QPoint> points;
|
||||
milliseconds duration {0ms};
|
||||
milliseconds duration {0};
|
||||
|
||||
for (int i = static_cast<int>(queue.size()) - 1; i >= 0; --i)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue