DescriptionChange TextRun's length() and charactersLength() to return an unsigned
TextRun's m_len and m_charactersLength are unsigned but the accessors
for these values return ints. The values for length and charactersLength
cannot be negative so returning an integer just adds unnecessary casts
and potentially dangerous code.
Committed: https://crrev.com/24873c03c01a5e4fb30b2b32988f1f63e8ce1855
Cr-Commit-Position: refs/heads/master@{#396776}
Patch Set 1 #Patch Set 2 : Rebase and remove one static_cast added in r396668 #
Messages
Total messages: 15 (6 generated)
|