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

Unified Diff: compiled/storage/FilterStorage.cpp

Issue 29549903: Issue 5664 - assert now accept one parameter. (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Sept. 19, 2017, 6:45 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/intrusive_ptr.h ('k') | compiled/subscription/UserDefinedSubscription.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/storage/FilterStorage.cpp
===================================================================
--- a/compiled/storage/FilterStorage.cpp
+++ b/compiled/storage/FilterStorage.cpp
@@ -107,17 +107,17 @@
);
return true;
}
bool FilterStorage::MoveSubscription(Subscription& subscription,
const Subscription* insertBefore)
{
int oldPos = IndexOfSubscription(subscription);
- assert(oldPos >= 0, u"Attempt to move a subscription that is not in the list"_str);
+ assert2(oldPos >= 0, u"Attempt to move a subscription that is not in the list"_str);
if (oldPos == -1)
return false;
int newPos = -1;
if (insertBefore)
newPos = IndexOfSubscription(*insertBefore);
if (newPos == -1)
newPos = mSubscriptions.size();
« no previous file with comments | « compiled/intrusive_ptr.h ('k') | compiled/subscription/UserDefinedSubscription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld