Use reinterpret_casts directly in place of C-style casts.
llvm-svn: 180679
This commit is contained in:
		
							parent
							
								
									ff3ce2bdc0
								
							
						
					
					
						commit
						2ed7030c1a
					
				| 
						 | 
				
			
			@ -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…
	
		Reference in New Issue