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

Unified Diff: third_party/WebKit/Source/core/editing/commands/SmartReplaceICU.cpp

Issue 1878473002: ASSERT -> DCHECK in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Output info for some DCHECKs, add TODOs. Created 4 years, 8 months 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/core/editing/commands/SmartReplaceICU.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/SmartReplaceICU.cpp b/third_party/WebKit/Source/core/editing/commands/SmartReplaceICU.cpp
index ad144a99816ade93dedc28ab3db7d0bfa77ebdcd..316e21223731a33708be80042238620a5979a5f5 100644
--- a/third_party/WebKit/Source/core/editing/commands/SmartReplaceICU.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/SmartReplaceICU.cpp
@@ -54,7 +54,7 @@ static USet* getSmartSet(bool isPreviousCharacter)
UErrorCode ec = U_ZERO_ERROR;
String whitespaceAndNewline("[[:WSpace:] [\\u000A\\u000B\\u000C\\u000D\\u0085]]");
smartSet = uset_openPattern(whitespaceAndNewline.charactersWithNullTermination().data(), whitespaceAndNewline.length(), &ec);
- ASSERT(U_SUCCESS(ec));
+ DCHECK(U_SUCCESS(ec)) << ec;
// CJK ranges
uset_addRange(smartSet, 0x1100, 0x1100 + 256); // Hangul Jamo (0x1100 - 0x11FF)
@@ -78,7 +78,7 @@ static USet* getSmartSet(bool isPreviousCharacter)
UErrorCode ec = U_ZERO_ERROR;
String punctuationClass("[:P:]");
USet* icuPunct = uset_openPattern(punctuationClass.charactersWithNullTermination().data(), punctuationClass.length(), &ec);
- ASSERT(U_SUCCESS(ec));
+ DCHECK(U_SUCCESS(ec)) << ec;
uset_addAll(smartSet, icuPunct);
uset_close(icuPunct);

Powered by Google App Engine
This is Rietveld 408576698