diff options
| author | David Chisnall <theraven@FreeBSD.org> | 2013-07-10 10:49:31 +0000 |
|---|---|---|
| committer | David Chisnall <theraven@FreeBSD.org> | 2013-07-10 10:49:31 +0000 |
| commit | 1c9014238e909c768bf84564733b5441d5c9ea2b (patch) | |
| tree | ee42ff7378fd2433cb88e1cfa25b2a65035b0c43 /src/iostream.cpp | |
| parent | 527d9fcb66574fdd657c3235c0d7cba7c5439d5c (diff) | |
Notes
Diffstat (limited to 'src/iostream.cpp')
| -rw-r--r-- | src/iostream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/iostream.cpp b/src/iostream.cpp index 7fc71df44a451..f413681f00643 100644 --- a/src/iostream.cpp +++ b/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(); } |
