mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:00:04 +00:00 
			
		
		
		
	Make sure unordered map references aren't invalidated by reserving sufficient space
This commit is contained in:
		
							parent
							
								
									26a22d4e84
								
							
						
					
					
						commit
						8f4325f61a
					
				
					 7 changed files with 39 additions and 4 deletions
				
			
		|  | @ -122,6 +122,8 @@ TextSettings& TextSettings::operator=(TextSettings&&) noexcept = default; | |||
| 
 | ||||
| void TextSettings::Impl::InitializeFontVariables() | ||||
| { | ||||
|    fontData_.reserve(types::FontCategoryIterator().count()); | ||||
| 
 | ||||
|    for (auto fontCategory : types::FontCategoryIterator()) | ||||
|    { | ||||
|       auto  result = fontData_.emplace(fontCategory, FontData {}); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat