Use data() instead of c_str() where appropriate
This commit is contained in:
		
							parent
							
								
									ec2827f5fc
								
							
						
					
					
						commit
						d5a5a83ad4
					
				
					 9 changed files with 18 additions and 18 deletions
				
			
		|  | @ -159,7 +159,7 @@ void writeString(const unsigned char * buf, size_t len, Sink & sink) | |||
| 
 | ||||
| void writeString(const string & s, Sink & sink) | ||||
| { | ||||
|     writeString((const unsigned char *) s.c_str(), s.size(), sink); | ||||
|     writeString((const unsigned char *) s.data(), s.size(), sink); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue