diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2013-04-27 19:12:36 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2013-04-27 19:12:36 +0000 |
commit | 2ed7030c1a82b2e58eccd5643e55ba60bcc2c0b6 (patch) | |
tree | c4c9d297b8ff752ef6d560568c3951eeca80fe61 /libcxx/src | |
parent | ff3ce2bdc060ddddf358b054b819b1e762e69c2f (diff) | |
download | bcm5719-llvm-2ed7030c1a82b2e58eccd5643e55ba60bcc2c0b6.tar.gz bcm5719-llvm-2ed7030c1a82b2e58eccd5643e55ba60bcc2c0b6.zip |
Use reinterpret_casts directly in place of C-style casts.
llvm-svn: 180679
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/iostream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/src/iostream.cpp b/libcxx/src/iostream.cpp index 7fc71df44a4..f413681f006 100644 --- a/libcxx/src/iostream.cpp +++ b/libcxx/src/iostream.cpp @@ -54,13 +54,13 @@ ios_base::Init::Init() ios_base::Init::~Init() { - ostream* cout_ptr = (ostream*)cout; - ostream* clog_ptr = (ostream*)clog; + ostream* cout_ptr = reinterpret_cast<ostream*>(cout); + ostream* clog_ptr = reinterpret_cast<ostream*>(clog); cout_ptr->flush(); clog_ptr->flush(); - wostream* wcout_ptr = (wostream*)wcout; - wostream* wclog_ptr = (wostream*)wclog; + wostream* wcout_ptr = reinterpret_cast<wostream*>(wcout); + wostream* wclog_ptr = reinterpret_cast<wostream*>(wclog); wcout_ptr->flush(); wclog_ptr->flush(); } |