diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 14:28:30 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 14:28:30 +0000 |
commit | f07467d2f7344af716a90df0b54573b4fd9967e3 (patch) | |
tree | c8ae35b12a8e0f88b29ae5cb0e86d995a36154db /gpu | |
parent | 7b862a32d4f20c96e2a98c39e26b4c6b77f9e1cc (diff) | |
download | chromium_src-f07467d2f7344af716a90df0b54573b4fd9967e3.zip chromium_src-f07467d2f7344af716a90df0b54573b4fd9967e3.tar.gz chromium_src-f07467d2f7344af716a90df0b54573b4fd9967e3.tar.bz2 |
Working towards -Wextra
- Make loops use {} instead of a ';' to make it clear there is no body to the loop.
- Remove checks of unsigned values for <0
- coordinates should be CGFloat, not NSUInteger.
BUG=34160
TEST=none
Review URL: http://codereview.chromium.org/2865003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49939 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/common/id_allocator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/common/id_allocator.cc b/gpu/command_buffer/common/id_allocator.cc index 22c55e3..faa4599 100644 --- a/gpu/command_buffer/common/id_allocator.cc +++ b/gpu/command_buffer/common/id_allocator.cc @@ -27,7 +27,7 @@ ResourceId IdAllocator::FindFirstFree() const { ResourceId IdAllocator::AllocateIDAtOrAbove(ResourceId desired_id) { DCHECK_LT(static_cast<ResourceId>(used_ids_.size()), static_cast<ResourceId>(-1)); - for (; InUse(desired_id); ++desired_id); + for (; InUse(desired_id); ++desired_id) {} MarkAsUsed(desired_id); return desired_id; } |