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

Unified Diff: compiled/StringMap.h

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
« no previous file with comments | « compiled/String.h ('k') | compiled/debug.h » ('j') | compiled/debug.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/StringMap.h
===================================================================
--- a/compiled/StringMap.h
+++ b/compiled/StringMap.h
@@ -288,19 +288,19 @@
mInsertCounter = mMap->mInsertCounter;
mHash = mMap->hash(key);
#endif
}
void assign(const String& key, const T& value)
{
#if defined(DEBUG)
- assert(mInsertCounter == mMap->mInsertCounter,
+ assert2(mInsertCounter == mMap->mInsertCounter,
u"There should be no insert operations performed between map.find() and assign()"_str);
- assert(mHash == mMap->hash(key),
+ assert2(mHash == mMap->hash(key),
u"The keys used in map.find() and assign() should be identical"_str);
#endif
mMap->assign(this->mEntry, entry_type(key, value));
}
};
}
« no previous file with comments | « compiled/String.h ('k') | compiled/debug.h » ('j') | compiled/debug.h » ('J')

Powered by Google App Engine
This is Rietveld