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

Unified Diff: compiled/library.h

Issue 29715695: Noissue - get rid of compiler warnings (Closed) Base URL: github.com:adblockplus/adblockpluscore
Patch Set: Created March 6, 2018, 12:26 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/filter/RegExpFilter.cpp ('k') | compiled/library.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/library.h
diff --git a/compiled/library.h b/compiled/library.h
index 5950cfb62652853efb832a9e584948c5db7e2572..63e5c750f8837c5be8a30f35ea3ffb3860f192a0 100644
--- a/compiled/library.h
+++ b/compiled/library.h
@@ -17,6 +17,8 @@
#pragma once
+#include <cstdint>
+
#include "base.h"
ABP_NS_BEGIN
@@ -24,6 +26,7 @@ ABP_NS_BEGIN
class String;
class Filter;
class Subscription;
+typedef uint32_t RegExpID;
namespace FilterNotifier
{
@@ -43,7 +46,7 @@ extern "C"
ABP_NS::Subscription* subscription, unsigned int position);
void JSNotifySubscriptionChange(ABP_NS::FilterNotifier::Topic topic,
ABP_NS::Subscription& subscription);
- int GenerateRegExp(const ABP_NS::String& regexp, bool matchCase);
- void DeleteRegExp(int id);
- bool TestRegExp(int id, const ABP_NS::String& str);
+ RegExpID GenerateRegExp(const ABP_NS::String& regexp, bool matchCase);
+ void DeleteRegExp(RegExpID id);
+ bool TestRegExp(RegExpID id, const ABP_NS::String& str);
}
« no previous file with comments | « compiled/filter/RegExpFilter.cpp ('k') | compiled/library.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld