mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	code cleanup: unamed namespace instead of global or static variables
Unamed namespace behaves the same way as static variables in C source. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									3b4877a073
								
							
						
					
					
						commit
						17a6f28827
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -77,10 +77,12 @@ | |||
| #include "plugins/facebook/facebookconnectwidget.h" | ||||
| #endif | ||||
| 
 | ||||
| QProgressDialog *progressDialog = NULL; | ||||
| bool progressDialogCanceled = false; | ||||
| namespace { | ||||
| 	QProgressDialog *progressDialog = nullptr; | ||||
| 	bool progressDialogCanceled = false; | ||||
| 	int progressCounter = 0; | ||||
| } | ||||
| 
 | ||||
| static int progressCounter = 0; | ||||
| 
 | ||||
| extern "C" int updateProgress(const char *text) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue