mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Prefix all size_t with std::
done automatically by executing regex replace `([^:0-9a-zA-Z_])size_t([^0-9a-zA-Z_])` -> `$1std::size_t$2`
This commit is contained in:
		
							parent
							
								
									eca98eeb3e
								
							
						
					
					
						commit
						7d8f115185
					
				
					 158 changed files with 669 additions and 634 deletions
				
			
		|  | @ -42,7 +42,8 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const { | |||
|                 {Pica::DebugContext::Event::BufferSwapped, tr("Buffers swapped")}, | ||||
|             }; | ||||
| 
 | ||||
|             DEBUG_ASSERT(map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); | ||||
|             DEBUG_ASSERT(map.size() == | ||||
|                          static_cast<std::size_t>(Pica::DebugContext::Event::NumEvents)); | ||||
|             return (map.find(event) != map.end()) ? map.at(event) : QString(); | ||||
|         } | ||||
| 
 | ||||
|  |  | |||
|  | @ -113,7 +113,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { | |||
|     Settings::LogSettings(); | ||||
| 
 | ||||
|     // register types to use in slots and signals
 | ||||
|     qRegisterMetaType<size_t>("size_t"); | ||||
|     qRegisterMetaType<std::size_t>("std::size_t"); | ||||
|     qRegisterMetaType<Service::AM::InstallStatus>("Service::AM::InstallStatus"); | ||||
| 
 | ||||
|     LoadTranslation(); | ||||
|  | @ -1000,7 +1000,7 @@ void GMainWindow::OnMenuInstallCIA() { | |||
|     QtConcurrent::run([&, filepaths] { | ||||
|         QString current_path; | ||||
|         Service::AM::InstallStatus status; | ||||
|         const auto cia_progress = [&](size_t written, size_t total) { | ||||
|         const auto cia_progress = [&](std::size_t written, std::size_t total) { | ||||
|             emit UpdateProgress(written, total); | ||||
|         }; | ||||
|         for (const auto current_path : filepaths) { | ||||
|  | @ -1011,7 +1011,7 @@ void GMainWindow::OnMenuInstallCIA() { | |||
|     }); | ||||
| } | ||||
| 
 | ||||
| void GMainWindow::OnUpdateProgress(size_t written, size_t total) { | ||||
| void GMainWindow::OnUpdateProgress(std::size_t written, std::size_t total) { | ||||
|     progress_bar->setValue( | ||||
|         static_cast<int>(INT_MAX * (static_cast<double>(written) / static_cast<double>(total)))); | ||||
| } | ||||
|  |  | |||
|  | @ -85,7 +85,7 @@ signals: | |||
|      */ | ||||
|     void EmulationStopping(); | ||||
| 
 | ||||
|     void UpdateProgress(size_t written, size_t total); | ||||
|     void UpdateProgress(std::size_t written, std::size_t total); | ||||
|     void CIAInstallReport(Service::AM::InstallStatus status, QString filepath); | ||||
|     void CIAInstallFinished(); | ||||
|     // Signal that tells widgets to update icons to use the current theme
 | ||||
|  | @ -161,7 +161,7 @@ private slots: | |||
|     void OnGameListShowList(bool show); | ||||
|     void OnMenuLoadFile(); | ||||
|     void OnMenuInstallCIA(); | ||||
|     void OnUpdateProgress(size_t written, size_t total); | ||||
|     void OnUpdateProgress(std::size_t written, std::size_t total); | ||||
|     void OnCIAInstallReport(Service::AM::InstallStatus status, QString filepath); | ||||
|     void OnCIAInstallFinished(); | ||||
|     void OnMenuRecentFile(); | ||||
|  | @ -255,5 +255,5 @@ protected: | |||
|     void dragMoveEvent(QDragMoveEvent* event) override; | ||||
| }; | ||||
| 
 | ||||
| Q_DECLARE_METATYPE(size_t); | ||||
| Q_DECLARE_METATYPE(std::size_t); | ||||
| Q_DECLARE_METATYPE(Service::AM::InstallStatus); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue