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: Used the wrong preprocessor operation for assert() Created Sept. 20, 2017, 2:15 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/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();

Powered by Google App Engine
This is Rietveld