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

Unified Diff: compiled/subscription/Subscription.cpp

Issue 29532626: Issue 5603 - Support references in parameters of exported functions (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created Aug. 31, 2017, 12:36 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/subscription/Subscription.cpp
===================================================================
--- a/compiled/subscription/Subscription.cpp
+++ b/compiled/subscription/Subscription.cpp
@@ -43,20 +43,20 @@ Filter* Subscription::FilterAt(Subscript
{
if (index >= mFilters.size())
return nullptr;
FilterPtr result(mFilters[index]);
return result.release();
}
-int Subscription::IndexOfFilter(Filter* filter)
+int Subscription::IndexOfFilter(const Filter& filter)
{
for (Filters::size_type i = 0; i < mFilters.size(); i++)
- if (mFilters[i] == filter)
+ if (mFilters[i] == &filter)
return i;
return -1;
}
OwnedString Subscription::Serialize() const
{
OwnedString result(u"[Subscription]\nurl="_str);
result.append(mID);

Powered by Google App Engine
This is Rietveld