mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 17:56:37 +00:00 
			
		
		
		
	There is no more need to copy std::string into a pair when need to call std::map::find. Remove unused resetPendingChange function.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			717 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			717 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef COMPONENTS_SETTINGS_CATEGORIES_H
 | |
| #define COMPONENTS_SETTINGS_CATEGORIES_H
 | |
| 
 | |
| #include <map>
 | |
| #include <set>
 | |
| #include <string>
 | |
| #include <utility>
 | |
| #include <string_view>
 | |
| 
 | |
| namespace Settings
 | |
| {
 | |
|     struct Less
 | |
|     {
 | |
|         using is_transparent = void;
 | |
| 
 | |
|         bool operator()(const std::pair<std::string_view, std::string_view>& l,
 | |
|             const std::pair<std::string_view, std::string_view>& r) const
 | |
|         {
 | |
|             return l < r;
 | |
|         }
 | |
|     };
 | |
| 
 | |
|     using CategorySetting = std::pair<std::string, std::string>;
 | |
|     using CategorySettingVector = std::set<CategorySetting>;
 | |
|     using CategorySettingValueMap = std::map<CategorySetting, std::string, Less>;
 | |
| }
 | |
| 
 | |
| #endif // COMPONENTS_SETTINGS_CATEGORIES_H
 |