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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2070283002: Use container::back() and container::pop_back(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index 681f99f0e5967277fefa4fcee2b0650b8ef0c569..24d82aa588a19a1eca0f5883fbb0a5317760041d 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -129,7 +129,7 @@ class CC_SURFACES_EXPORT SurfaceManager {
ClientSourceMapping();
ClientSourceMapping(const ClientSourceMapping& other);
~ClientSourceMapping();
- bool is_empty() const { return !client && !children.size(); }
+ bool is_empty() const { return !client && children.empty(); }
// The client that's responsible for creating this namespace. Never null.
SurfaceFactoryClient* client;
// The currently assigned begin frame source for this client.
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698