fix macosx build
This commit is contained in:
		
							parent
							
								
									c7543f56a3
								
							
						
					
					
						commit
						a695a4f0ff
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		|  | @ -289,12 +289,12 @@ void AdBlockCustomList::loadSubscription(const QStringList& disabledRules) { | ||||||
| 
 | 
 | ||||||
|     stream.setCodec("UTF-8"); |     stream.setCodec("UTF-8"); | ||||||
| 
 | 
 | ||||||
|     if (!rules.contains(ddg1 + QL1S("\n"))) { |     if (!rules.contains(ddg1 + QL1C('\n'))) { | ||||||
|       stream << ddg1 << Qt::endl; |       stream << ddg1 << QL1C('\n'); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (!rules.contains(QL1S("\n") + ddg2)) { |     if (!rules.contains(QL1C('\n') + ddg2)) { | ||||||
|       stream << ddg2 << Qt::endl; |       stream << ddg2 << QL1C('\n'); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | @ -313,12 +313,12 @@ void AdBlockCustomList::saveSubscription() { | ||||||
|   QTextStream textStream(&file); |   QTextStream textStream(&file); | ||||||
| 
 | 
 | ||||||
|   textStream.setCodec("UTF-8"); |   textStream.setCodec("UTF-8"); | ||||||
|   textStream << "Title: " << title() << Qt::endl; |   textStream << "Title: " << title() << QL1C('\n'); | ||||||
|   textStream << "Url: " << url().toString() << Qt::endl; |   textStream << "Url: " << url().toString() << QL1C('\n'); | ||||||
|   textStream << "[Adblock Plus 1.1.1]" << Qt::endl; |   textStream << "[Adblock Plus 1.1.1]" << QL1C('\n'); | ||||||
| 
 | 
 | ||||||
|   for (const AdBlockRule* rule : m_rules) { |   for (const AdBlockRule* rule : m_rules) { | ||||||
|     textStream << rule->filter() << Qt::endl; |     textStream << rule->filter() << QL1C('\n'); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   file.close(); |   file.close(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue