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

Unified Diff: compiled/subscription/UserDefinedSubscription.h

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/UserDefinedSubscription.h
===================================================================
--- a/compiled/subscription/UserDefinedSubscription.h
+++ b/compiled/subscription/UserDefinedSubscription.h
@@ -23,23 +23,23 @@
class UserDefinedSubscription : public Subscription
{
private:
int mDefaults;
public:
explicit UserDefinedSubscription(const String& id);
- bool BINDINGS_EXPORTED IsDefaultFor(const Filter* filter) const;
- void BINDINGS_EXPORTED MakeDefaultFor(const Filter* filter);
+ bool BINDINGS_EXPORTED IsDefaultFor(const Filter& filter) const;
+ void BINDINGS_EXPORTED MakeDefaultFor(const Filter& filter);
bool BINDINGS_EXPORTED IsGeneric() const
{
return mDefaults == 0;
}
- void BINDINGS_EXPORTED InsertFilterAt(Filter* filter, unsigned pos);
+ void BINDINGS_EXPORTED InsertFilterAt(Filter& filter, unsigned pos);
bool BINDINGS_EXPORTED RemoveFilterAt(unsigned pos);
OwnedString BINDINGS_EXPORTED Serialize() const;
};
template<>
inline UserDefinedSubscription* Subscription::As<UserDefinedSubscription>()
{
if (mType != Type::USERDEFINED)

Powered by Google App Engine
This is Rietveld