Skip to content
Snippets Groups Projects
Commit 6cbb57ac authored by Ben Boeckel's avatar Ben Boeckel
Browse files

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
parent 53ba0bc6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment