Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/filter/ActiveFilter.cpp

Issue 29595633: Issue 5870 - Implement the new ElemHideEmulation filter type (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Review comments Created Jan. 30, 2018, 10:52 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiled/filter/ActiveFilter.cpp
===================================================================
--- a/compiled/filter/ActiveFilter.cpp
+++ b/compiled/filter/ActiveFilter.cpp
@@ -23,16 +23,22 @@
const DependentString ActiveFilter::DEFAULT_DOMAIN(u""_str);
ActiveFilter::ActiveFilter(Type type, const String& text, bool ignoreTrailingDot)
: Filter(type, text), mIgnoreTrailingDot(ignoreTrailingDot),
mDisabled(false), mHitCount(0), mLastHit(0)
{
}
+ActiveFilter::ActiveFilter(Type type, String&& text, bool ignoreTrailingDot)
+ : Filter(type, std::move(text)), mIgnoreTrailingDot(ignoreTrailingDot),
+ mDisabled(false), mHitCount(0), mLastHit(0)
+{
+}
+
ActiveFilter::DomainMap* ActiveFilter::GetDomains() const
{
return mDomains.get();
}
ActiveFilter::SitekeySet* ActiveFilter::GetSitekeys() const
{
return mSitekeys.get();

Powered by Google App Engine
This is Rietveld