mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 15:00:06 +00:00 
			
		
		
		
	Merge pull request #372 from badloop/fixSiteParsing
fix: rfind to find for more consistent site parsing
This commit is contained in:
		
						commit
						501ea22ea2
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -639,7 +639,7 @@ void SettingsDialogImpl::SetupGeneralTab() | ||||||
|       [](const std::string& text) -> std::string |       [](const std::string& text) -> std::string | ||||||
|       { |       { | ||||||
|          // Find the position of location details
 |          // Find the position of location details
 | ||||||
|          size_t pos = text.rfind(" ("); |          size_t pos = text.find(" ("); | ||||||
| 
 | 
 | ||||||
|          if (pos == std::string::npos) |          if (pos == std::string::npos) | ||||||
|          { |          { | ||||||
|  | @ -1060,7 +1060,7 @@ void SettingsDialogImpl::SetupAudioTab() | ||||||
|       [](const std::string& text) -> std::string |       [](const std::string& text) -> std::string | ||||||
|       { |       { | ||||||
|          // Find the position of location details
 |          // Find the position of location details
 | ||||||
|          size_t pos = text.rfind(" ("); |          size_t pos = text.find(" ("); | ||||||
| 
 | 
 | ||||||
|          if (pos == std::string::npos) |          if (pos == std::string::npos) | ||||||
|          { |          { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat