summaryrefslogtreecommitdiffstats
path: root/libcxx/src
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2013-04-27 19:12:36 +0000
committerJoerg Sonnenberger <joerg@bec.de>2013-04-27 19:12:36 +0000
commit2ed7030c1a82b2e58eccd5643e55ba60bcc2c0b6 (patch)
treec4c9d297b8ff752ef6d560568c3951eeca80fe61 /libcxx/src
parentff3ce2bdc060ddddf358b054b819b1e762e69c2f (diff)
downloadbcm5719-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.cpp8
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();
}
OpenPOWER on IntegriCloud