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

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

Issue 2812643002: Fix names of local constants after blink rename. (Closed)
Patch Set: Created 3 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 839a1947504cf4ac0f1007cf89b731ffb9b77d6f..57d667792e5f47bdace9fe06097579e027a8942b 100644
--- a/third_party/WebKit/Source/core/editing/commands/SmartReplaceICU.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/SmartReplaceICU.cpp
@@ -49,13 +49,12 @@ static USet* GetSmartSet(bool is_previous_character) {
USet* smart_set = is_previous_character ? pre_smart_set : post_smart_set;
if (!smart_set) {
// Whitespace and newline (kCFCharacterSetWhitespaceAndNewline)
- static const UChar* k_whitespace_and_new_line =
- reinterpret_cast<const UChar*>(
- u"[[:WSpace:] [\\u000A\\u000B\\u000C\\u000D\\u0085]]");
+ static const UChar* kWhitespaceAndNewLine = reinterpret_cast<const UChar*>(
+ u"[[:WSpace:] [\\u000A\\u000B\\u000C\\u000D\\u0085]]");
UErrorCode ec = U_ZERO_ERROR;
smart_set = uset_openPattern(
- k_whitespace_and_new_line,
- LengthOfNullTerminatedString(k_whitespace_and_new_line), &ec);
+ kWhitespaceAndNewLine,
+ LengthOfNullTerminatedString(kWhitespaceAndNewLine), &ec);
DCHECK(U_SUCCESS(ec)) << ec;
// CJK ranges
@@ -90,12 +89,12 @@ static USet* GetSmartSet(bool is_previous_character) {
AddAllCodePoints(smart_set, ")].,;:?\'!\"%*-/}");
// Punctuation (kCFCharacterSetPunctuation)
- static const UChar* k_punctuation_class =
+ static const UChar* kPunctuationClass =
reinterpret_cast<const UChar*>(u"[:P:]");
UErrorCode ec = U_ZERO_ERROR;
USet* icu_punct = uset_openPattern(
- k_punctuation_class,
- LengthOfNullTerminatedString(k_punctuation_class), &ec);
+ kPunctuationClass, LengthOfNullTerminatedString(kPunctuationClass),
+ &ec);
DCHECK(U_SUCCESS(ec)) << ec;
uset_addAll(smart_set, icu_punct);
uset_close(icu_punct);

Powered by Google App Engine
This is Rietveld 408576698