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

Unified Diff: compiled/subscription/UserDefinedSubscription.cpp

Issue 29549903: Issue 5664 - assert now accept one parameter. (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Leave assert() alone now. Created Sept. 21, 2017, 12:48 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/storage/FilterStorage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/subscription/UserDefinedSubscription.cpp
===================================================================
--- a/compiled/subscription/UserDefinedSubscription.cpp
+++ b/compiled/subscription/UserDefinedSubscription.cpp
@@ -51,27 +51,27 @@
: Subscription(Type::USERDEFINED, id), mDefaults(0)
{
}
bool UserDefinedSubscription::IsDefaultFor(const Filter& filter) const
{
if (filter.mType >= Filter::Type::VALUE_COUNT)
{
- assert(false, "Filter type exceeds valid range");
+ assert2(false, "Filter type exceeds valid range");
abort();
}
return mDefaults & filterTypeToCategory[filter.mType];
}
void UserDefinedSubscription::MakeDefaultFor(const Filter& filter)
{
if (filter.mType >= Filter::Type::VALUE_COUNT)
{
- assert(false, "Filter type exceeds valid range");
+ assert2(false, "Filter type exceeds valid range");
abort();
}
mDefaults |= filterTypeToCategory[filter.mType];
}
void UserDefinedSubscription::InsertFilterAt(Filter& filter, unsigned pos)
{
if (pos >= mFilters.size())
« no previous file with comments | « compiled/storage/FilterStorage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld