# Conflicts:
#	indra/newview/llexperiencelog.cpp
This commit is contained in:
Liru Færs
2020-02-25 03:33:49 -05:00
6 changed files with 19 additions and 8 deletions

View File

@@ -36,7 +36,7 @@
#include "lldate.h"
class LLExperienceLogDispatchHandler : public LLDispatchHandler
class LLExperienceLogDispatchHandler final : public LLDispatchHandler
{
public:
bool operator()(
@@ -225,12 +225,13 @@ LLExperienceLog::~LLExperienceLog()
void LLExperienceLog::eraseExpired()
{
const auto& inst(*this); // Fixes Linux
std::vector<std::string> expired;
std::for_each(mEvents.beginMap(), mEvents.endMap(),
[&](const auto& event_pair)
{
const std::string& date = event_pair.first;
if (isExpired(date))
if (inst.isExpired(date))
{
expired.push_back(date);
}
@@ -242,7 +243,7 @@ void LLExperienceLog::eraseExpired()
}
}
bool LLExperienceLog::isExpired(const std::string& date)
bool LLExperienceLog::isExpired(const std::string& date) const
{
if (date.empty())
return true;