Module: check_mk
Branch: master
Commit: 2c1c21b7109b0070251ac6214f94425bfee2a50f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2c1c21b7109b00…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Nov 10 15:59:56 2017 +0100
Renamings only.
Change-Id: I9a25ceb1a504c153ce811a3cb27e6b2b037c9ad1
---
livestatus/src/AndingFilter.cc | 16 ++++++++--------
livestatus/src/OringFilter.cc | 16 ++++++++--------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/livestatus/src/AndingFilter.cc b/livestatus/src/AndingFilter.cc
index aa657d1..571aa79 100644
--- a/livestatus/src/AndingFilter.cc
+++ b/livestatus/src/AndingFilter.cc
@@ -62,19 +62,19 @@ bool AndingFilter::optimizeBitmask(const std::string
&column_name,
}
std::unique_ptr<Filter> AndingFilter::copy() const {
- auto af = std::make_unique<AndingFilter>();
- for (const auto &sf : _subfilters) {
- af->addSubfilter(sf->copy());
+ auto result = std::make_unique<AndingFilter>();
+ for (const auto &filter : _subfilters) {
+ result->addSubfilter(filter->copy());
}
- return af;
+ return result;
}
std::unique_ptr<Filter> AndingFilter::negate() const {
- auto af = std::make_unique<OringFilter>();
- for (const auto &sf : _subfilters) {
- af->addSubfilter(sf->negate());
+ auto result = std::make_unique<OringFilter>();
+ for (const auto &filter : _subfilters) {
+ result->addSubfilter(filter->negate());
}
- return af;
+ return result;
}
const std::string *AndingFilter::findValueForIndexing(
diff --git a/livestatus/src/OringFilter.cc b/livestatus/src/OringFilter.cc
index b0cd074..ec882af 100644
--- a/livestatus/src/OringFilter.cc
+++ b/livestatus/src/OringFilter.cc
@@ -68,17 +68,17 @@ bool OringFilter::optimizeBitmask(const std::string &column_name,
}
std::unique_ptr<Filter> OringFilter::copy() const {
- auto af = std::make_unique<OringFilter>();
- for (const auto &sf : _subfilters) {
- af->addSubfilter(sf->copy());
+ auto result = std::make_unique<OringFilter>();
+ for (const auto &filter : _subfilters) {
+ result->addSubfilter(filter->copy());
}
- return af;
+ return result;
}
std::unique_ptr<Filter> OringFilter::negate() const {
- auto af = std::make_unique<AndingFilter>();
- for (const auto &sf : _subfilters) {
- af->addSubfilter(sf->negate());
+ auto result = std::make_unique<AndingFilter>();
+ for (const auto &filter : _subfilters) {
+ result->addSubfilter(filter->negate());
}
- return af;
+ return result;
}