mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:50:06 +00:00 
			
		
		
		
	moved settings initialization into cpp files
This commit is contained in:
		
							parent
							
								
									c92b881d4a
								
							
						
					
					
						commit
						97b5b6f4ca
					
				
					 3 changed files with 21 additions and 3 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| #define SETTINGS_CONTAINER_IMPLEMENTATION | ||||
| //#define SETTINGS_CONTAINER_IMPLEMENTATION
 | ||||
| 
 | ||||
| #include <scwx/qt/settings/settings_container.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
|  | @ -172,6 +172,8 @@ bool SettingsContainer<Container>::Equals(const SettingsVariableBase& o) const | |||
|           p->elementMaximum_ == v.p->elementMaximum_; | ||||
| } | ||||
| 
 | ||||
| template class SettingsContainer<std::vector<std::int64_t>>; | ||||
| 
 | ||||
| } // namespace settings
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| #define SETTINGS_INTERFACE_IMPLEMENTATION | ||||
| //#define SETTINGS_INTERFACE_IMPLEMENTATION
 | ||||
| 
 | ||||
| #include <scwx/qt/settings/settings_interface.hpp> | ||||
| #include <scwx/qt/settings/settings_variable.hpp> | ||||
|  | @ -616,6 +616,14 @@ void SettingsInterface<T>::Impl::UpdateResetButton() | |||
|    } | ||||
| } | ||||
| 
 | ||||
| template class SettingsInterface<bool>; | ||||
| template class SettingsInterface<double>; | ||||
| template class SettingsInterface<std::int64_t>; | ||||
| template class SettingsInterface<std::string>; | ||||
| 
 | ||||
| // Containers are not to be used directly
 | ||||
| template class SettingsInterface<std::vector<std::int64_t>>; | ||||
| 
 | ||||
| } // namespace settings
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| #define SETTINGS_VARIABLE_IMPLEMENTATION | ||||
| //#define SETTINGS_VARIABLE_IMPLEMENTATION
 | ||||
| 
 | ||||
| #include <scwx/qt/settings/settings_variable.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
|  | @ -402,6 +402,14 @@ bool SettingsVariable<T>::Equals(const SettingsVariableBase& o) const | |||
|           p->maximum_ == v.p->maximum_; | ||||
| } | ||||
| 
 | ||||
| template class SettingsVariable<bool>; | ||||
| template class SettingsVariable<double>; | ||||
| template class SettingsVariable<std::int64_t>; | ||||
| template class SettingsVariable<std::string>; | ||||
| 
 | ||||
| // Containers are not to be used directly
 | ||||
| template class SettingsVariable<std::vector<std::int64_t>>; | ||||
| 
 | ||||
| } // namespace settings
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak