Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Unified Diff: o3d/core/cross/gpu2d/path_processor.cc

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: o3d/core/cross/gpu2d/path_processor.cc
diff --git a/o3d/core/cross/gpu2d/path_processor.cc b/o3d/core/cross/gpu2d/path_processor.cc
index 756ae48afa7c43cf67194c73226efc8fb3be951a..6e50e9e78c262e82ca64bed5ad5f525f87044ab6 100644
--- a/o3d/core/cross/gpu2d/path_processor.cc
+++ b/o3d/core/cross/gpu2d/path_processor.cc
@@ -1105,7 +1105,7 @@ void PathProcessor::SubdivideCurves() {
std::vector<SweepInterval> overlaps;
for (int cur_iter = 0; cur_iter < kMaxIter; ++cur_iter) {
- if (cur_segments.size() == 0) {
+ if (cur_segments.empty()) {
Peter Kasting 2011/03/02 00:02:42 Nit: "break; // Done" would allow eliminating {}
// Done
break;
}
@@ -1224,7 +1224,7 @@ void PathProcessor::SubdivideCurvesSlow() {
const int kMaxIter = 5;
for (int cur_iter = 0; cur_iter < kMaxIter; ++cur_iter) {
- if (cur_segments.size() == 0) {
+ if (cur_segments.empty()) {
// Done
break;
}

Powered by Google App Engine
This is Rietveld 408576698