Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Unified Diff: third_party/WebKit/Source/wtf/text/StringBuffer.h

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/wtf/text/StringBuffer.h
diff --git a/third_party/WebKit/Source/wtf/text/StringBuffer.h b/third_party/WebKit/Source/wtf/text/StringBuffer.h
index ef5908cd7a2bbcfab8772de86d40ad50dba2dc40..2f8a4f9b5be028353a1a9adfa24e646d0cb0eb84 100644
--- a/third_party/WebKit/Source/wtf/text/StringBuffer.h
+++ b/third_party/WebKit/Source/wtf/text/StringBuffer.h
@@ -72,7 +72,7 @@ class StringBuffer {
template <typename CharType>
void StringBuffer<CharType>::shrink(unsigned newLength) {
- ASSERT(m_data);
+ DCHECK(m_data);
if (m_data->length() == newLength)
return;
m_data = m_data->substring(0, newLength);
« no previous file with comments | « third_party/WebKit/Source/wtf/text/IntegerToStringConversion.h ('k') | third_party/WebKit/Source/wtf/text/StringConcatenate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698