Fix some random -Wconversion warnings
This commit is contained in:
		
							parent
							
								
									548ad391d9
								
							
						
					
					
						commit
						53ec5ac69f
					
				
					 16 changed files with 82 additions and 80 deletions
				
			
		|  | @ -28,7 +28,7 @@ void XMLWriter::close() | |||
| } | ||||
| 
 | ||||
| 
 | ||||
| void XMLWriter::indent_(unsigned int depth) | ||||
| void XMLWriter::indent_(size_t depth) | ||||
| { | ||||
|     if (!indent) return; | ||||
|     output << string(depth * 2, ' '); | ||||
|  | @ -75,7 +75,7 @@ void XMLWriter::writeAttrs(const XMLAttrs & attrs) | |||
| { | ||||
|     for (auto & i : attrs) { | ||||
|         output << " " << i.first << "=\""; | ||||
|         for (unsigned int j = 0; j < i.second.size(); ++j) { | ||||
|         for (size_t j = 0; j < i.second.size(); ++j) { | ||||
|             char c = i.second[j]; | ||||
|             if (c == '"') output << """; | ||||
|             else if (c == '<') output << "<"; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue