mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	core: qPref replace COPY_TXT with copy_txt in qPrefPrivate
Add copy_txt function to qPrefPrivate class Remove macro COPY_TXT from qPrefPrivate.h Replace use of COPY_TXT with copy_txt in qPref classes copy_txt is only once, COPY_TXT was expanded approx. 160 times, so this commit saves space (and removes a macro). Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
		
							parent
							
								
									597aa75348
								
							
						
					
					
						commit
						f1648d297b
					
				
					 4 changed files with 17 additions and 15 deletions
				
			
		|  | @ -35,7 +35,7 @@ void qPrefDisplay::set_divelist_font(const QString& value) | |||
| 
 | ||||
| 	if (newValue != prefs.divelist_font && | ||||
| 		!subsurface_ignore_font(qPrintable(newValue))) { | ||||
| 		COPY_TXT(divelist_font, value); | ||||
| 		qPrefPrivate::copy_txt(&prefs.divelist_font, value); | ||||
| 		disk_divelist_font(true); | ||||
| 
 | ||||
| 		qApp->setFont(QFont(newValue)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue