Use reinterpret_casts directly in place of C-style casts.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@180679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger 2013-04-27 19:12:36 +00:00
parent 006ab1e213
commit d3b5b6b9f4

View File

@ -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();
}