diff options
author | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-26 13:07:29 +0000 |
---|---|---|
committer | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-26 13:07:29 +0000 |
commit | c95c886977c189d7b7fc6578beae33d779fe3155 (patch) | |
tree | 96a7839c3a54c836fb424ce9aa4af95f40f91cc6 /base | |
parent | 331fabe33484fdb165dc4ca3418aa7046c717fc6 (diff) | |
download | chromium_src-c95c886977c189d7b7fc6578beae33d779fe3155.zip chromium_src-c95c886977c189d7b7fc6578beae33d779fe3155.tar.gz chromium_src-c95c886977c189d7b7fc6578beae33d779fe3155.tar.bz2 |
Remove some unneeded reinterpret_casts
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7741018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98417 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/string16.cc | 4 | ||||
-rw-r--r-- | base/threading/thread_local.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/base/string16.cc b/base/string16.cc index 6fc38ce..a801610 100644 --- a/base/string16.cc +++ b/base/string16.cc @@ -51,11 +51,11 @@ const char16* c16memchr(const char16* s, char16 c, size_t n) { } char16* c16memmove(char16* s1, const char16* s2, size_t n) { - return reinterpret_cast<char16*>(memmove(s1, s2, n * sizeof(char16))); + return static_cast<char16*>(memmove(s1, s2, n * sizeof(char16))); } char16* c16memcpy(char16* s1, const char16* s2, size_t n) { - return reinterpret_cast<char16*>(memcpy(s1, s2, n * sizeof(char16))); + return static_cast<char16*>(memcpy(s1, s2, n * sizeof(char16))); } char16* c16memset(char16* s, char16 c, size_t n) { diff --git a/base/threading/thread_local.h b/base/threading/thread_local.h index 3cdcb94..79cf3c5 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: |