Use empty() instead of comparing size() with 0.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2010-01-03 18:45:08 +00:00
parent acead96ea8
commit 6d7a231dac

View file

@ -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;