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

Unified Diff: compiled/subscription/Subscription.h

Issue 29613616: Issue 6064 - Put C++ code into a configurable namespace (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: Created Nov. 21, 2017, 1:53 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
« no previous file with comments | « compiled/subscription/DownloadableSubscription.cpp ('k') | compiled/subscription/Subscription.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/subscription/Subscription.h
diff --git a/compiled/subscription/Subscription.h b/compiled/subscription/Subscription.h
index acbe864a0fd4bac98f22a9a7dfd4c42fd5af1e18..ebaed9ccd899accddd912f20d1eaee3e82374a47 100644
--- a/compiled/subscription/Subscription.h
+++ b/compiled/subscription/Subscription.h
@@ -20,6 +20,7 @@
#include <type_traits>
#include <vector>
+#include "../base.h"
#include "../filter/Filter.h"
#include "../String.h"
#include "../FilterNotifier.h"
@@ -40,9 +41,9 @@
if (name != value)\
{\
name = value;\
- if (FilterNotifier::Topic::topic != FilterNotifier::Topic::NONE)\
+ if (ABP_NS::FilterNotifier::Topic::topic != ABP_NS::FilterNotifier::Topic::NONE)\
{\
- FilterNotifier::SubscriptionChange(FilterNotifier::Topic::topic,\
+ ABP_NS::FilterNotifier::SubscriptionChange(ABP_NS::FilterNotifier::Topic::topic,\
*this);\
}\
}\
@@ -55,6 +56,8 @@
#define SUBSCRIPTION_STRING_PROPERTY(name, topic, getter, setter) \
SUBSCRIPTION_PROPERTY_INTERNAL(OwnedString, const String&, name, topic, getter, setter)
+ABP_NS_BEGIN
+
class Subscription : public ref_counted
{
public:
@@ -104,3 +107,5 @@ public:
};
typedef intrusive_ptr<Subscription> SubscriptionPtr;
+
+ABP_NS_END
« no previous file with comments | « compiled/subscription/DownloadableSubscription.cpp ('k') | compiled/subscription/Subscription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld