Commit ab84c502 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[clang-tidy] Prefer static_cast to c style casts

See
https://clang.llvm.org/extra/clang-tidy/checks/google-readability-casting.html
and https://google.github.io/styleguide/cppguide.html#Casting.

Change-Id: Ic40a585e034e804da9ded1563e85f6dd44506da1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2233988Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68300}
parent 4e24c353
...@@ -1893,8 +1893,8 @@ Maybe<Intl::ResolvedLocale> Intl::ResolveLocale( ...@@ -1893,8 +1893,8 @@ Maybe<Intl::ResolvedLocale> Intl::ResolveLocale(
Handle<Managed<icu::UnicodeString>> Intl::SetTextToBreakIterator( Handle<Managed<icu::UnicodeString>> Intl::SetTextToBreakIterator(
Isolate* isolate, Handle<String> text, icu::BreakIterator* break_iterator) { Isolate* isolate, Handle<String> text, icu::BreakIterator* break_iterator) {
text = String::Flatten(isolate, text); text = String::Flatten(isolate, text);
icu::UnicodeString* u_text = icu::UnicodeString* u_text = static_cast<icu::UnicodeString*>(
(icu::UnicodeString*)(Intl::ToICUUnicodeString(isolate, text).clone()); Intl::ToICUUnicodeString(isolate, text).clone());
Handle<Managed<icu::UnicodeString>> new_u_text = Handle<Managed<icu::UnicodeString>> new_u_text =
Managed<icu::UnicodeString>::FromRawPtr(isolate, 0, u_text); Managed<icu::UnicodeString>::FromRawPtr(isolate, 0, u_text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment