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); |