Skip to content

Commit a695a4f

Browse files
committed
fix macosx build
1 parent c7543f5 commit a695a4f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/librssguard/network-web/adblock/adblocksubscription.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,12 @@ void AdBlockCustomList::loadSubscription(const QStringList& disabledRules) {
289289

290290
stream.setCodec("UTF-8");
291291

292-
if (!rules.contains(ddg1 + QL1S("\n"))) {
293-
stream << ddg1 << Qt::endl;
292+
if (!rules.contains(ddg1 + QL1C('\n'))) {
293+
stream << ddg1 << QL1C('\n');
294294
}
295295

296-
if (!rules.contains(QL1S("\n") + ddg2)) {
297-
stream << ddg2 << Qt::endl;
296+
if (!rules.contains(QL1C('\n') + ddg2)) {
297+
stream << ddg2 << QL1C('\n');
298298
}
299299
}
300300

@@ -313,12 +313,12 @@ void AdBlockCustomList::saveSubscription() {
313313
QTextStream textStream(&file);
314314

315315
textStream.setCodec("UTF-8");
316-
textStream << "Title: " << title() << Qt::endl;
317-
textStream << "Url: " << url().toString() << Qt::endl;
318-
textStream << "[Adblock Plus 1.1.1]" << Qt::endl;
316+
textStream << "Title: " << title() << QL1C('\n');
317+
textStream << "Url: " << url().toString() << QL1C('\n');
318+
textStream << "[Adblock Plus 1.1.1]" << QL1C('\n');
319319

320320
for (const AdBlockRule* rule : m_rules) {
321-
textStream << rule->filter() << Qt::endl;
321+
textStream << rule->filter() << QL1C('\n');
322322
}
323323

324324
file.close();

0 commit comments

Comments
 (0)