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:
parent
006ab1e213
commit
d3b5b6b9f4
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user