Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mapnik/mapnik
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Sep 26, 2012
2 parents 8b77547 + a7d7dd2 commit 7d066fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/contributing.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ If you see bits of code around that do not follow these please don't hesitate to
// more...
}

#### Prefer `empty()` over `size() == 0` if container supports it

This avoids implicit conversions to bool and reduces compiler warnings.

if (container.empty()) // please

if (container.size() == 0) // no


### Other C++ style resources

Expand Down

0 comments on commit 7d066fe

Please sign in to comment.