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

Unified Diff: base/threading/thread_local.h

Issue 7741018: Remove some unneeded reinterpret_casts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « base/string16.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread_local.h
diff --git a/base/threading/thread_local.h b/base/threading/thread_local.h
index 3cdcb942e34072b0e8a940f500f4bd3fb3c6356d..79cf3c5b360b5c17e69ae6fa0b5d87d1e4b8e215 100644
--- a/base/threading/thread_local.h
+++ b/base/threading/thread_local.h
@@ -114,7 +114,7 @@ class ThreadLocalBoolean {
}
void Set(bool val) {
- tlp_.Set(reinterpret_cast<void*>(val ? 1 : 0));
+ tlp_.Set(val ? this : NULL);
}
private:
« no previous file with comments | « base/string16.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698