strings: Use string methods instead of size calculations
Rather than doing str[str.size() - 1], save pointer arithmetic and just use the .rbegin() iterator to get the last element of a container. Change-Id: Iad5cffce4da4d714f19d93273ee1193a576b8f87
Loading
Please register or sign in to comment