Only exclude const-qualified char pointers.
String literals cannot be used to initialize *non-const* fields - such usage would trigger the following warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]. Because of the above, this CL ensures makes a change to include in the rewrite the fields below: char* char_ptr; wchar_t* wide_char_ptr; while continuing to exclude the fields below: const char* const_char_ptr; const wchar_t* const_wide_char_ptr; Bug: 1069567 Change-Id: Id660806c9e947220644b1ad10b083eeebaae36e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2283771 Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Bartek Nowierski <bartekn@chromium.org> Cr-Commit-Position: refs/heads/master@{#786549}
Showing
Please register or sign in to comment