]> granicus.if.org Git - icinga2/blob - lib/livestatus/negatefilter.cpp
Merge pull request #7185 from Icinga/bugfix/gelfwriter-wrong-log-facility
[icinga2] / lib / livestatus / negatefilter.cpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #include "livestatus/negatefilter.hpp"
4
5 using namespace icinga;
6
7 NegateFilter::NegateFilter(Filter::Ptr inner)
8         : m_Inner(std::move(inner))
9 { }
10
11 bool NegateFilter::Apply(const Table::Ptr& table, const Value& row)
12 {
13         return !m_Inner->Apply(table, row);
14 }