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

Unified Diff: ui/base/x/x11_util.cc

Issue 8495043: Turn on -Wexit-time-destructors for ui and content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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: ui/base/x/x11_util.cc
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index 873996fd451f7b7ae3cbe9798b332282b70de9d1..d901a72e2545e7fc0d0e0550c739adf088b693f5 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -216,7 +216,7 @@ int GetDefaultScreen(Display* display) {
}
Cursor GetXCursor(int cursor_shape) {
- static XCursorCache cache;
+ CR_DEFINE_STATIC_LOCAL(XCursorCache, cache, ());
Mark Mentovai 2011/11/09 17:44:44 Break out. I won’t mention this again during this
Nico 2011/11/09 18:16:02 (Un)done. I won't say "done" for the other instanc
return cache.GetCursor(cursor_shape);
}

Powered by Google App Engine
This is Rietveld 408576698