Use empty() instead of comparing size() with 0.
Issue found by cppcheck.
This commit is contained in:
parent
acead96ea8
commit
6d7a231dac
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ static void calc_rects()
|
|||
unsigned h = next->first - y;
|
||||
SDL_Rect a = {x, y, w, h};
|
||||
|
||||
if (update_rects.size() == 0) {
|
||||
if (update_rects.empty()) {
|
||||
update_rects.push_back(a);
|
||||
} else {
|
||||
SDL_Rect& p = update_rects.back(), n;
|
||||
|
|
Loading…
Add table
Reference in a new issue