mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Change NULLs to nullptrs.
This commit is contained in:
		
							parent
							
								
									63b1453dd8
								
							
						
					
					
						commit
						8a62423970
					
				
					 24 changed files with 115 additions and 115 deletions
				
			
		|  | @ -230,7 +230,7 @@ QByteArray GRenderWindow::saveGeometry() | |||
| { | ||||
|     // If we are a top-level widget, store the current geometry
 | ||||
|     // otherwise, store the last backup
 | ||||
|     if (parent() == NULL) | ||||
|     if (parent() == nullptr) | ||||
|         return ((QGLWidget*)this)->saveGeometry(); | ||||
|     else | ||||
|         return geometry; | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ | |||
| 
 | ||||
| struct Hotkey | ||||
| { | ||||
|     Hotkey() : shortcut(NULL), context(Qt::WindowShortcut) {} | ||||
|     Hotkey() : shortcut(nullptr), context(Qt::WindowShortcut) {} | ||||
| 
 | ||||
|     QKeySequence keyseq; | ||||
|     QShortcut* shortcut; | ||||
|  | @ -81,7 +81,7 @@ QShortcut* GetHotkey(const QString& group, const QString& action, QWidget* widge | |||
|     Hotkey& hk = hotkey_groups[group][action]; | ||||
| 
 | ||||
|     if (!hk.shortcut) | ||||
|         hk.shortcut = new QShortcut(hk.keyseq, widget, NULL, NULL, hk.context); | ||||
|         hk.shortcut = new QShortcut(hk.keyseq, widget, nullptr, nullptr, hk.context); | ||||
| 
 | ||||
|     return hk.shortcut; | ||||
| } | ||||
|  |  | |||
|  | @ -131,7 +131,7 @@ GMainWindow::GMainWindow() | |||
| GMainWindow::~GMainWindow() | ||||
| { | ||||
|     // will get automatically deleted otherwise
 | ||||
|     if (render_window->parent() == NULL) | ||||
|     if (render_window->parent() == nullptr) | ||||
|         delete render_window; | ||||
| } | ||||
| 
 | ||||
|  | @ -213,14 +213,14 @@ void GMainWindow::OnOpenHotkeysDialog() | |||
| void GMainWindow::ToggleWindowMode() | ||||
| { | ||||
|     bool enable = ui.action_Popout_Window_Mode->isChecked(); | ||||
|     if (enable && render_window->parent() != NULL) | ||||
|     if (enable && render_window->parent() != nullptr) | ||||
|     { | ||||
|         ui.horizontalLayout->removeWidget(render_window); | ||||
|         render_window->setParent(NULL); | ||||
|         render_window->setParent(nullptr); | ||||
|         render_window->setVisible(true); | ||||
|         render_window->RestoreGeometry(); | ||||
|     } | ||||
|     else if (!enable && render_window->parent() == NULL) | ||||
|     else if (!enable && render_window->parent() == nullptr) | ||||
|     { | ||||
|         render_window->BackupGeometry(); | ||||
|         ui.horizontalLayout->addWidget(render_window); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue