Use reinterpret_casts directly in place of C-style casts.

llvm-svn: 180679
This commit is contained in:
Joerg Sonnenberger 2013-04-27 19:12:36 +00:00
parent ff3ce2bdc0
commit 2ed7030c1a
1 changed files with 4 additions and 4 deletions

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