From b2c862e7d5f15143d326ea3fc0cc4ddb5e0bd814 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 25 Aug 2024 02:07:31 +0200 Subject: [PATCH] CollectionModel: Use chrono literals --- src/collection/collectionmodel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/collection/collectionmodel.cpp b/src/collection/collectionmodel.cpp index a965b5de4..ec847fe54 100644 --- a/src/collection/collectionmodel.cpp +++ b/src/collection/collectionmodel.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -75,6 +76,8 @@ #include "covermanager/albumcoverloader.h" #include "settings/collectionsettingspage.h" +using namespace std::chrono_literals; + const int CollectionModel::kPrettyCoverSize = 32; namespace { constexpr char kPixmapDiskCacheDir[] = "pixmapcache"; @@ -133,11 +136,11 @@ CollectionModel::CollectionModel(SharedPtr backend, Applicati backend_->UpdateTotalAlbumCountAsync(); timer_reload_->setSingleShot(true); - timer_reload_->setInterval(300); + timer_reload_->setInterval(300ms); QObject::connect(timer_reload_, &QTimer::timeout, this, &CollectionModel::Reload); timer_update_->setSingleShot(false); - timer_update_->setInterval(20); + timer_update_->setInterval(20ms); QObject::connect(timer_update_, &QTimer::timeout, this, &CollectionModel::ProcessUpdate); ReloadSettings();