mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	code cleanup: add empty table structures
It seemed to make sense to combine all three types in one commit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									70cabb968c
								
							
						
					
					
						commit
						e1cd055111
					
				
					 13 changed files with 47 additions and 41 deletions
				
			
		| 
						 | 
				
			
			@ -1662,9 +1662,9 @@ void MainWindow::importFiles(const QStringList fileNames)
 | 
			
		|||
		return;
 | 
			
		||||
 | 
			
		||||
	QByteArray fileNamePtr;
 | 
			
		||||
	struct dive_table table = { 0 };
 | 
			
		||||
	struct trip_table trips = { 0 };
 | 
			
		||||
	struct dive_site_table sites = { 0 };
 | 
			
		||||
	struct dive_table table = empty_dive_table;
 | 
			
		||||
	struct trip_table trips = empty_trip_table;
 | 
			
		||||
	struct dive_site_table sites = empty_dive_site_table;
 | 
			
		||||
 | 
			
		||||
	for (int i = 0; i < fileNames.size(); ++i) {
 | 
			
		||||
		fileNamePtr = QFile::encodeName(fileNames.at(i));
 | 
			
		||||
| 
						 | 
				
			
			@ -1757,9 +1757,9 @@ void MainWindow::on_actionImportDiveSites_triggered()
 | 
			
		|||
		return;
 | 
			
		||||
	updateLastUsedDir(QFileInfo(fileNames[0]).dir().path());
 | 
			
		||||
 | 
			
		||||
	struct dive_table table = { 0 };
 | 
			
		||||
	struct trip_table trips = { 0 };
 | 
			
		||||
	struct dive_site_table sites = { 0 };
 | 
			
		||||
	struct dive_table table = empty_dive_table;
 | 
			
		||||
	struct trip_table trips = empty_trip_table;
 | 
			
		||||
	struct dive_site_table sites = empty_dive_site_table;
 | 
			
		||||
 | 
			
		||||
	for (const QString &s: fileNames) {
 | 
			
		||||
		QByteArray fileNamePtr = QFile::encodeName(s);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue