mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	disassembler: Get rid of a const_cast
This commit is contained in:
		
							parent
							
								
									c4767f3bb2
								
							
						
					
					
						commit
						e05d6220f5
					
				
					 3 changed files with 5 additions and 8 deletions
				
			
		|  | @ -232,11 +232,8 @@ void DisassemblerWidget::OnDebugModeEntered() | |||
| { | ||||
|     ARMword next_instr = Core::g_app_core->GetPC(); | ||||
| 
 | ||||
|     // TODO: Make BreakPoints less crappy (i.e. const-correct) so that this doesn't need a const_cast.
 | ||||
|     if (const_cast<BreakPoints&>(model->GetBreakPoints()).IsAddressBreakPoint(next_instr)) | ||||
|     { | ||||
|     if (model->GetBreakPoints().IsAddressBreakPoint(next_instr)) | ||||
|         emu_thread.SetCpuRunning(false); | ||||
|     } | ||||
| 
 | ||||
|     model->SetNextInstruction(next_instr); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue