[Webkit-unassigned] [Bug 154484] Support building LocaleICU with light ICU (UCONFIG_NO_FORMATTING)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 25 08:38:06 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=154484
--- Comment #11 from Olivier Blin <olivier.blin at softathome.com> ---
(In reply to comment #10)
> Comment on attachment 271958 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=271958&action=review
>
> >>> Source/WebCore/platform/text/LocaleICU.h:86
> >>> +#endif
> >>
> >> Would be better to initialize these data members here. Then we would not need the conditional initialization lines in the constructor.
> >
> > But the UNumberFormat type would be unknown, and we would have to forward-declare it to allow using a pointer on it.
> >
> > Is it worth doing this?
> > If so, I can resend a patch.
>
> We can initialize to null without any other changes:
>
> #if !UCONFIG_NO_FORMATTING
> UNumberFormat* m_numberFormat { nullptr };
> bool m_didCreateDecimalFormat { false };
> #endif
>
> I donât know what you mean by âwe would have to forward-declare itâ.
Ok, looks good this way.
Sorry, I misinterpreted your initial comment.
> And yes, I do think itâs worth doing this so we can remove the four lines of
> code in the constructor that conditionally initialize these data members.
Then, I should do the same for the other LocalICU fields that have been made conditional in bug 154483, right?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160225/d7c9f5ed/attachment.html>
More information about the webkit-unassigned
mailing list