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

Unified Diff: o3d/plugin/idl/bounding_box.idl

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/plugin/idl/bounding_box.idl
diff --git a/o3d/plugin/idl/bounding_box.idl b/o3d/plugin/idl/bounding_box.idl
index 9a5cc82e897b75701697c8b1122f148d4d15b987..23e5d881ca7d82ad038656971b0ef9bd172049c6 100644
--- a/o3d/plugin/idl/bounding_box.idl
+++ b/o3d/plugin/idl/bounding_box.idl
@@ -135,7 +135,7 @@ class BoundingBox {
void* plugin_data,
o3d::BoundingBox* _this,
const std::vector<std::vector<float> >& values) {
- if (values.size() == 0) {
+ if (values.empty()) {
*_this = o3d::BoundingBox();
} else if (values.size() != 2) {
o3d::ServiceLocator* service_locator =

Powered by Google App Engine
This is Rietveld 408576698