Archive warnings clang-tidy fixes

This commit is contained in:
Dan Paulat 2025-04-27 13:40:04 -05:00
parent 8cdd8526eb
commit 81f09e07f0
14 changed files with 43 additions and 46 deletions

View file

@ -241,7 +241,7 @@ void TextEventManager::SelectTime(
boost::asio::post(
p->threadPool_,
[=, this]()
[this]()
{
try
{
@ -259,7 +259,7 @@ void TextEventManager::SelectTime(
date < p->archiveLimit_;
});
std::unique_lock lock {p->archiveMutex_};
const std::unique_lock lock {p->archiveMutex_};
p->UpdateArchiveDates(dates);
p->ListArchives(dates);
@ -382,7 +382,7 @@ void TextEventManager::Impl::ListArchives(DateRange dates)
auto productEntries = provider::IemApiProvider::ListTextProducts(
dateArray | ranges::views::all, kEmptyRange_, kPilsView_);
std::unique_lock lock {unloadedProductMapMutex_};
const std::unique_lock lock {unloadedProductMapMutex_};
if (productEntries.has_value())
{