mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:20:04 +00:00 
			
		
		
		
	cpr write callback now takes const std::string_view&
This commit is contained in:
		
							parent
							
								
									907d80943e
								
							
						
					
					
						commit
						c04cbc2929
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -155,7 +155,7 @@ void DownloadManager::Impl::DownloadSync( | |||
|             return !request->IsCanceled(); | ||||
|          }), | ||||
|       cpr::WriteCallback( | ||||
|          [&](std::string data, std::intptr_t /* userdata */) | ||||
|          [&](const std::string_view& data, std::intptr_t /* userdata */) | ||||
|          { | ||||
|             // Write file
 | ||||
|             ofs << data; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat