Skip to content

Commit

Permalink
fix macosx build
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Rotter committed Jul 13, 2020
1 parent c7543f5 commit a695a4f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/librssguard/network-web/adblock/adblocksubscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,12 @@ void AdBlockCustomList::loadSubscription(const QStringList& disabledRules) {

stream.setCodec("UTF-8");

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

if (!rules.contains(QL1S("\n") + ddg2)) {
stream << ddg2 << Qt::endl;
if (!rules.contains(QL1C('\n') + ddg2)) {
stream << ddg2 << QL1C('\n');
}
}

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

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

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

file.close();
Expand Down

0 comments on commit a695a4f

Please sign in to comment.