Merge branch 'master' of https://github.com/RouterGray/SingularityViewer
# Conflicts: # indra/newview/llexperiencelog.cpp
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user